/* ====== FONTS & VARIABLES ====== */
/* Manrope (body text) — self-hosted, variable weight 400–800 */
@font-face {
    font-family: 'Manrope';
    src: url('fonts/manrope-cyrillic.woff2') format('woff2');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Manrope';
    src: url('fonts/manrope-latin-ext.woff2') format('woff2');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+A720-A7FF;
}

@font-face {
    font-family: 'Manrope';
    src: url('fonts/manrope-latin.woff2') format('woff2');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Gordita is served from the site itself (fonts/), subset to Latin + Cyrillic.
   An @font-face family shadows any locally installed Gordita, so every
   visitor sees exactly these files. */
@font-face {
    font-family: 'Gordita';
    src: url('fonts/gordita-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gordita';
    src: url('fonts/gordita-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --accent: #ffcd00;
    --accent-dark: #e6b800;
    --dark: #121212;
    --darker: #0a0a0a;
    --mid: #1e1e1e;
    --light-gray: #b0b0b0;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* ====== BASE STYLES ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--darker);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Gordita', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

section {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-tag {
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1;
}

.section-desc {
    color: var(--light-gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin-top: 20px;
}

.container {
    max-width: 2000px;
    margin: 0 auto;
    width: 100%;
}

/* ====== NAVIGATION ====== */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: transparent;
}

/* Enable transitions only after load to prevent flickering/jumping */
body.js-ready .nav-container {
    transition: padding 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        background 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        backdrop-filter 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        border 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-container .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.nav-container.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1001;
}

.logo-img {
    height: 48px;
    width: auto;
    filter: brightness(1.2);
    transition: transform 0.3s ease;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-wa {
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 12px;
    background: var(--white);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1001;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 15px rgba(255, 205, 0, 0.2);
}

.nav-wa:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 205, 0, 0.4);
}

.hamburger {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:nth-child(3) {
    top: 18px;
}

.nav-container.menu-open .hamburger span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}

.nav-container.menu-open .hamburger span:nth-child(2) {
    opacity: 0;
}

.nav-container.menu-open .hamburger span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

/* ====== HERO ====== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 0 60px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    padding: 0 5%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge,
.hero h1,
.hero-desc,
.hero-btns,
.hero-stats {
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.hero-badge {
    animation-delay: 0.1s;
}

.hero h1 {
    animation-delay: 0.2s;
}

.hero-desc {
    animation-delay: 0.3s;
}

.hero-btns {
    animation-delay: 0.4s;
}

.hero-stats {
    animation-delay: 0.5s;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 205, 0, 0.1);
    border: 1px solid rgba(255, 205, 0, 0.2);
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    border-radius: 4px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero h1 span {
    color: var(--accent);
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-stats {
    display: flex;
    gap: 60px;
    margin-top: 80px;
    position: relative;
    z-index: 2;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    animation: fadeUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: 'Gordita', sans-serif;
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    opacity: 0.8;
}

.btn-primary {
    background: var(--accent);
    color: var(--dark);
    padding: 18px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(255, 205, 0, 0.1);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 205, 0, 0.2);
}

.btn-secondary {
    padding: 18px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.cta-section .btn-secondary {
    border-color: rgba(255, 205, 0, 0.4);
    background: rgba(255, 205, 0, 0.05);
}

.cta-section .btn-secondary:hover {
    border-color: var(--accent);
    background: rgba(255, 205, 0, 0.1);
    box-shadow: 0 10px 20px rgba(255, 205, 0, 0.1);
}

/* ====== CALCULATOR SECTION ====== */
.calc-section {
    padding: 100px 0;
    background: var(--dark);
    position: relative;
}

.calc-section .container {
    padding: 0 5%;
}

.calc-section .section-title span {
    color: var(--accent);
}

.calc-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 205, 0, 0.3), transparent);
}

.calc-input-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
    margin-top: 40px;
}

.problems-section {
    padding: 100px 0;
    background: #353535;
}

.problems-section .container {
    padding: 0 5%;
}

/* ====== ADVANTAGES ====== */
.advantages-section {
    padding: 100px 0;
    background: #2b2b2b;
}

.advantages-section .container {
    padding: 0 5%;
}

.advantages-section .section-title span {
    color: var(--accent);
}

/* ====== PORTFOLIO ====== */
.portfolio-section {
    padding: 100px 0;
    background: #252525;
}

.portfolio-section .container {
    padding: 0 5%;
}

/* ====== FAQ ====== */
.faq-section {
    padding: 100px 0;
    background: var(--dark);
}

.faq-section .container {
    padding: 0 5%;
}

.calc-input-group {
    display: flex;
    align-items: center;
    background: var(--mid);
    border-radius: 12px;
    padding: 4px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.calc-input-group:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(255, 205, 0, 0.1);
}

.calc-input-group input {
    background: transparent;
    border: none;
    color: var(--white);
    font-family: 'Manrope', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    width: 200px;
    padding: 14px 20px;
    outline: none;
}

.calc-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.calc-input-group .unit {
    color: var(--light-gray);
    font-weight: 600;
    padding-right: 20px;
    font-size: 1rem;
}

.calc-btn {
    background: var(--accent);
    color: var(--dark);
    border: none;
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    padding: 20px 40px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.calc-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 205, 0, 0.2);
}

.cards-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 30px;
}

.card {
    background: var(--mid);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.3s ease;
    display: flex;
    flex-direction: column;
}



.card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 205, 0, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-pvc {
    background: linear-gradient(135deg, rgba(255, 205, 0, 0.05) 0%, var(--mid) 100%);
    border: 2px solid rgba(255, 205, 0, 0.2);
    grid-row: 1 / 3;
}

.card-recommend {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent);
    color: var(--dark);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 10px 24px;
    border-radius: 0 0 0 20px;
}

.card-title {
    font-size: 2rem;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.card-pvc .card-title {
    color: var(--accent);
}

.card-subtitle {
    color: var(--light-gray);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.card-price {
    font-family: 'Gordita', sans-serif;
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--white);
}

.card-pvc .card-price {
    color: var(--accent);
}

.card-price-note {
    font-size: 0.9rem;
    color: var(--light-gray);
    margin-bottom: 30px;
}

.card-features {
    list-style: none;
    margin-bottom: 30px;
}

.card-features li {
    padding: 12px 0;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid var(--glass-border);
}

.card-features li:last-child {
    border: none;
}

.feat-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    margin-top: 2px;
}

.feat-yes {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
}

.feat-no {
    background: rgba(229, 57, 53, 0.15);
    color: #e53935;
}

.feat-warn {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
}

.card-cta {
    display: block;
    text-align: center;
    padding: 16px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
    margin-top: auto;
}

.card-pvc .card-cta {
    background: var(--accent);
    color: var(--dark);
}

.card-bitum .card-cta,
.card-skat .card-cta {
    background: var(--glass);
    color: var(--white);
    border: 1px solid var(--glass-border);
}

.card-warning,
.card-benefit {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-radius: 12px;
    padding: 16px;
    margin-top: 20px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.card-warning {
    background: rgba(229, 57, 53, 0.08);
    border: 1px solid rgba(229, 57, 53, 0.2);
}

.card-benefit {
    background: rgba(76, 175, 80, 0.08);
    border: 1px solid rgba(76, 175, 80, 0.2);
}


.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.problem-card {
    background: #222222;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--glass-border);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}







.problem-card:hover {
    border-color: rgba(229, 57, 53, 0.3);
    transform: translateY(-5px);
}

.problem-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    background: rgba(255, 205, 0, 0.05);
    border: 1px solid rgba(255, 205, 0, 0.1);
    color: var(--accent);
    font-size: 2.2rem;
}

.problem-icon svg {
    width: 32px;
    height: 32px;
}


.problem-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.problem-card p {
    color: var(--light-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

.solution-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(76, 175, 80, 0.12);
    color: #4caf50;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    margin-top: 24px;
}


.adv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    margin-top: 60px;
    border: 1px solid var(--glass-border);
}

.adv-item {
    background: #252525;
    padding: 50px;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}







.adv-item {
    position: relative;
}

.adv-item:hover {
    background: rgba(255, 205, 0, 0.03);
}

.adv-number {
    font-family: 'Gordita', sans-serif;
    font-size: 4rem;
    color: rgba(255, 205, 0, 0.08);
    position: absolute;
    top: 20px;
    right: 30px;
    line-height: 1;
}

.adv-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.adv-item p {
    color: var(--light-gray);
    font-size: 1rem;
    line-height: 1.7;
}


.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/10;
    border: 1px solid var(--glass-border);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}






.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.portfolio-overlay p {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.instagram-card {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: var(--white);
    padding: 40px;
}

.insta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.insta-content svg {
    width: 64px;
    height: 64px;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.insta-content p {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

.insta-content h3 {
    font-size: 1.4rem;
    line-height: 1.2;
}

.instagram-card:hover .insta-content {
    transform: scale(1.05);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}


.faq-list {
    max-width: 900px;
    margin: 60px auto 0;
}

.faq-item {
    background: #1c1c1c;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-bottom: 16px;
    padding: 0 32px;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}






.faq-item:hover {
    border-color: rgba(255, 205, 0, 0.3);
    transform: translateY(-4px);
    background: #222222;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-q {
    width: 100%;
    background: none;
    border: none;
    color: var(--white);
    font-family: 'Manrope', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: left;
    padding: 28px 48px 28px 0;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.faq-item:hover .faq-q {
    color: var(--accent);
}

.faq-q::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    color: var(--accent);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.faq-item.open {
    border-color: var(--accent);
    background: #222222;
}

.faq-item.open .faq-q::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.faq-item.open .faq-a {
    max-height: 500px;
    padding-bottom: 32px;
}

.faq-a p {
    color: var(--light-gray);
    font-size: 1rem;
    line-height: 1.6;
}

/* ====== CTA SECTION ====== */
.cta-section {
    padding: 120px 0;
    background: linear-gradient(135deg, rgba(255, 205, 0, 0.08), var(--darker));
    text-align: center;
}

.cta-section .container {
    padding: 0 5%;
}

.cta-section h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 24px;
}

.cta-section h2 span {
    color: var(--accent);
}

.cta-desc {
    color: var(--light-gray);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 50px;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #25d366;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 20px 45px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.whatsapp-link:hover {
    background: #1fb855;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(53, 255, 141, 0.2);
}

.whatsapp-link svg {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 12px;
}

.trust-row {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    opacity: 0.6;
}

.trust-item {
    font-size: 0.9rem;
    color: var(--light-gray);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.trust-item svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
    flex-shrink: 0;
}

/* ====== FOOTER ====== */
footer {
    padding: 50px 0;
    background: var(--darker);
    border-top: 1px solid var(--glass-border);
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding: 0 5%;
}

footer .logo-img {
    height: 28px;
}

footer p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}


/* ====== ANIMATIONS ====== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1100px) {
    .adv-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cards-grid,
    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-pvc {
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--darker);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s;
        z-index: 1000;
    }

    .nav-container.menu-open .nav-menu {
        right: 0;
    }

    .hero::before {
        background: linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.4) 100%);
    }

    .hero-btns {
        flex-direction: column;
        gap: 12px;
    }

    .hero-btns a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 16px 20px;
    }

    .hamburger {
        display: block;
    }

    .adv-grid,
    .problems-grid {
        grid-template-columns: 1fr;
    }

    .problem-card {
        padding: 30px 24px;
    }

    .problem-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
        gap: 30px;
    }

    .calc-input-wrap {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .calc-input-group {
        flex: 1;
        min-width: 0;
    }

    .calc-input-group input {
        width: 100%;
        font-size: 1.1rem;
        padding: 12px 15px;
    }

    .calc-input-group .unit {
        font-size: 0.9rem;
        padding-right: 15px;
    }

    .calc-btn {
        width: auto;
        padding: 14px 20px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 30px 20px;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .card-price {
        font-size: 2.2rem;
    }

    .nav-wa {
        display: none;
    }
}

/* ====== NEW SALES BLOCKS (below hero) ====== */
.why-flat-section,
.why-pvc-section,
.for-whom-section {
    padding: 110px 0;
}

.why-flat-section .container,
.why-pvc-section .container,
.for-whom-section .container {
    padding: 0 5%;
}

.why-flat-section {
    background: var(--dark);
}

.why-pvc-section {
    background: #2b2b2b;
}

.for-whom-section {
    background: #252525;
}

.why-flat-section .section-title span,
.why-pvc-section .section-title span,
.for-whom-section .section-title span {
    color: var(--accent);
}

/* Block 1 */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.why-item {
    position: relative;
    background: var(--mid);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 32px;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.why-item:hover {
    border-color: rgba(255, 205, 0, 0.3);
    transform: translateY(-6px);
}

.why-num {
    font-family: 'Gordita', sans-serif;
    font-size: 3.5rem;
    line-height: 1;
    color: rgba(255, 205, 0, 0.18);
    margin-bottom: 24px;
}

.why-item h3 {
    font-size: 1.3rem;
    line-height: 1.15;
    margin-bottom: 14px;
    color: var(--accent);
}

.why-item p {
    color: var(--light-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Block 2 */
.why-pvc-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: start;
}

.why-pvc-head {
    position: sticky;
    top: 120px;
}

.why-pvc-cta {
    display: inline-block;
    margin-top: 36px;
}

.pvc-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pvc-row {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 28px;
    align-items: center;
    background: #222;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px 36px;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.pvc-row:hover {
    border-color: rgba(255, 205, 0, 0.3);
    transform: translateX(6px);
}

.pvc-big {
    font-family: 'Gordita', sans-serif;
    font-size: 2.8rem;
    line-height: 1;
    color: var(--accent);
}

.pvc-big small {
    display: block;
    margin-top: 8px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--light-gray);
    font-weight: 600;
}

.pvc-row h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.pvc-row p {
    color: var(--light-gray);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Block 3 */
.whom-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.whom-card {
    background: linear-gradient(160deg, rgba(255, 205, 0, 0.05), var(--mid) 60%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 36px 30px;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.whom-card:hover {
    border-color: rgba(255, 205, 0, 0.35);
    transform: translateY(-6px);
}

.whom-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(255, 205, 0, 0.1);
    border-radius: 6px;
    padding: 6px 12px;
    margin-bottom: 22px;
}

.whom-card h3 {
    font-size: 1.35rem;
    line-height: 1.15;
    margin-bottom: 14px;
}

.whom-card p {
    color: var(--light-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

.whom-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 50px;
    padding: 36px 44px;
    border-radius: 20px;
    border: 1px solid rgba(255, 205, 0, 0.25);
    background: rgba(255, 205, 0, 0.05);
}

.whom-cta p {
    max-width: 720px;
    font-size: 1.1rem;
    color: var(--white);
}

.whom-cta strong {
    color: var(--accent);
}

footer .nav-link {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 1100px) {

    .why-grid,
    .whom-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-pvc-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .why-pvc-head {
        position: static;
    }
}

@media (max-width: 768px) {

    .why-flat-section,
    .why-pvc-section,
    .for-whom-section {
        padding: 70px 0;
    }

    .why-grid,
    .whom-grid {
        grid-template-columns: 1fr;
    }

    .pvc-row {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 26px 24px;
    }

    .whom-cta {
        padding: 28px 24px;
    }

    .whom-cta .btn-primary {
        width: 100%;
        text-align: center;
    }
}

/* ====== HERO ADDITIONS ====== */
.hero-sub {
    font-family: 'Gordita', sans-serif;
    text-transform: uppercase;
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    color: var(--white);
    margin-bottom: 18px;
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.25s forwards;
}

.hero-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 28px;
    opacity: 0;
    animation: fadeUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.45s forwards;
}

.hero-chips li {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-chips li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 800;
}

.btn-photo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-photo svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.hero-btns .btn-primary,
.hero-btns .btn-secondary {
    text-align: center;
}

/* ====== QUIZ CALCULATOR ====== */
.calc-section {
    background: linear-gradient(160deg, #1b1b1b, var(--darker));
}

.calc-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 70px;
    align-items: center;
}

.calc-section .container {
    padding: 0 5%;
}

.calc-points {
    list-style: none;
    margin-top: 28px;
}

.calc-points li {
    padding: 8px 0 8px 32px;
    position: relative;
    color: var(--white);
    font-weight: 600;
}

.calc-points li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.18);
    color: #4caf50;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz {
    background: var(--mid);
    border: 1px solid rgba(255, 205, 0, 0.25);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    min-height: 420px;
}

.quiz-progress {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.quiz-progress span {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.quiz-progress span.on {
    background: var(--accent);
}

.quiz-step-label {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 22px;
}

.quiz-q {
    font-size: 1.6rem;
    line-height: 1.15;
    text-transform: none;
    margin-bottom: 24px;
}

.quiz-options {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.quiz-opt {
    text-align: left;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--white);
    font-family: 'Manrope', sans-serif;
    border-radius: 14px;
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: all 0.25s ease;
}

.quiz-opt:hover,
.quiz-opt.sel {
    border-color: var(--accent);
    background: rgba(255, 205, 0, 0.08);
    transform: translateX(4px);
}

.quiz-opt-title {
    font-weight: 700;
    font-size: 1.02rem;
}

.quiz-opt-hint {
    font-size: 0.85rem;
    color: var(--light-gray);
}

.quiz-area {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 6px 20px;
}

.quiz-area:focus-within {
    border-color: var(--accent);
}

.quiz-area input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    font-family: 'Manrope', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    padding: 12px 0;
}

.quiz-area span {
    color: var(--light-gray);
    font-weight: 700;
}

.quiz-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 6px;
}

.quiz-chips button {
    background: rgba(255, 205, 0, 0.08);
    color: var(--accent);
    border: 1px solid rgba(255, 205, 0, 0.25);
    border-radius: 999px;
    padding: 8px 16px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    cursor: pointer;
}

.quiz-chips button:hover {
    background: rgba(255, 205, 0, 0.18);
}

.quiz-note {
    color: var(--light-gray);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 14px 0;
}

.quiz-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 10px;
}

.quiz-next {
    border: none;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    padding: 16px 36px;
}

.quiz-back {
    background: none;
    border: none;
    color: var(--light-gray);
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    display: block;
}

.quiz-back:hover {
    color: var(--accent);
}

.quiz-result-label {
    color: var(--light-gray);
    font-size: 0.9rem;
}

.quiz-result {
    font-family: 'Gordita', sans-serif;
    font-size: clamp(1.9rem, 3.8vw, 2.8rem);
    color: var(--accent);
    line-height: 1.1;
    margin: 6px 0 10px;
}

.quiz-result-sub {
    color: var(--white);
    font-size: 0.95rem;
}

.quiz-wa {
    display: flex;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin: 6px 0 14px;
    padding: 18px 20px;
    font-size: 1rem;
}

.quiz-call {
    display: block;
    text-align: center;
    color: var(--light-gray);
    margin-bottom: 14px;
}

/* ====== SYSTEMS ====== */
.systems-section {
    background: var(--dark);
    padding: 110px 0;
}

.systems-section .container,
.zhkh-section .container,
.certs-section .container {
    padding: 0 5%;
}

.systems-section .section-title span,
.zhkh-section .section-title span,
.certs-section .section-title span {
    color: var(--accent);
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.system-card {
    background: var(--mid);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 34px 30px;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.system-card:hover {
    border-color: rgba(255, 205, 0, 0.35);
    transform: translateY(-6px);
}

.system-card-hl {
    background: linear-gradient(160deg, rgba(255, 205, 0, 0.06), var(--mid) 70%);
}

.system-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(255, 205, 0, 0.1);
    border-radius: 6px;
    padding: 5px 10px;
    margin-bottom: 18px;
}

.system-card h3 {
    font-size: 1.25rem;
    line-height: 1.15;
    margin-bottom: 12px;
}

.system-card p {
    color: var(--light-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

.systems-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 44px;
}

.systems-footer p {
    font-size: 1.1rem;
    max-width: 640px;
}

.systems-footer a {
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

/* ====== ZHKH ====== */
.zhkh-section {
    background: #2b2b2b;
    padding: 110px 0;
}

.zhkh-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 70px;
    align-items: start;
}

.zhkh-list {
    list-style: none;
    margin-top: 36px;
}

.zhkh-list li {
    position: relative;
    padding: 16px 0 16px 38px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--light-gray);
    line-height: 1.65;
}

.zhkh-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 18px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 205, 0, 0.12);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zhkh-list strong {
    color: var(--white);
}

.zhkh-docs {
    background: var(--mid);
    border: 1px solid rgba(255, 205, 0, 0.25);
    border-radius: 24px;
    padding: 40px;
    position: sticky;
    top: 110px;
}

.zhkh-docs h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.zhkh-docs ul {
    list-style: none;
    margin-bottom: 30px;
}

.zhkh-docs li {
    padding: 12px 0 12px 30px;
    position: relative;
    border-bottom: 1px solid var(--glass-border);
    font-weight: 600;
}

.zhkh-docs li::before {
    content: '▪';
    color: var(--accent);
    position: absolute;
    left: 6px;
}

.zhkh-docs .btn-primary {
    display: block;
    text-align: center;
    text-decoration: none;
}

/* ====== CERTIFICATES ====== */
.certs-section {
    background: var(--dark);
    padding: 110px 0;
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.cert-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 6px 20px;
    align-items: start;
    background: var(--mid);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 26px;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cert-card:hover {
    border-color: rgba(255, 205, 0, 0.3);
}

.cert-icon {
    grid-row: 1 / 3;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: rgba(255, 205, 0, 0.08);
    border: 1px solid rgba(255, 205, 0, 0.25);
    color: var(--accent);
    font-family: 'Gordita', sans-serif;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-card h3 {
    font-size: 1.05rem;
    line-height: 1.2;
}

.cert-card p {
    color: var(--light-gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ====== MISC ====== */
.cta-mail {
    margin: -20px 0 40px;
}

.cta-mail a {
    color: var(--light-gray);
}

.cta-section .btn-secondary {
    text-decoration: none;
}

a.portfolio-item {
    display: block;
    text-decoration: none;
    color: var(--white);
}

.faq-a a {
    color: var(--accent);
}

/* ====== FLOATING WHATSAPP ====== */
.wa-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 14px 20px 14px 16px;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: waPulse 2.8s ease-out infinite;
}

.wa-fab:hover {
    transform: translateY(-3px) scale(1.03);
}

.wa-fab svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

@keyframes waPulse {
    0% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .wa-fab { animation: none; }
}

@media (max-width: 1100px) {
    .calc-layout,
    .zhkh-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .systems-grid,
    .certs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .zhkh-docs {
        position: static;
    }
}

@media (max-width: 768px) {
    .systems-section,
    .zhkh-section,
    .certs-section {
        padding: 70px 0;
    }

    .systems-grid,
    .certs-grid {
        grid-template-columns: 1fr;
    }

    .quiz {
        padding: 26px 20px;
        min-height: 0;
    }

    .zhkh-docs {
        padding: 28px 22px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-overlay {
        opacity: 1;
    }

    .systems-footer a {
        width: 100%;
    }

    .wa-fab {
        right: 14px;
        bottom: 14px;
        padding: 14px;
    }

    .wa-fab-label {
        display: none;
    }

    .hero-btns .btn-photo {
        justify-content: center;
    }

    .nav-menu .nav-link {
        font-size: 1.2rem;
    }
}

@media (max-width: 1100px) {
    .nav-menu {
        gap: 22px;
    }

    .nav-wa {
        padding: 10px 16px;
        font-size: 0.75rem;
    }
}

/* =====================================================================
   POLISH PASS — consistent buttons, spacing, overflow fixes
   ===================================================================== */
.nowrap {
    white-space: nowrap;
}

/* Buttons: one shape everywhere (pill), centred content, icon spacing */
.btn-primary,
.btn-secondary,
.whatsapp-link,
.nav-wa,
.quiz-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    text-align: center;
    line-height: 1.2;
    text-decoration: none;
    min-height: 56px;
    padding: 16px 34px;
}

.nav-wa {
    min-height: 0;
    padding: 12px 24px;
}

.hero-btns {
    flex-wrap: wrap;
    align-items: center;
}

.hero-btns .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
}

.btn-photo svg,
.whatsapp-link svg {
    width: 20px;
    height: 20px;
    margin: 0;
    flex-shrink: 0;
}

.whatsapp-link svg {
    width: 22px;
    height: 22px;
}

.card-cta,
.quiz-wa {
    border-radius: 999px;
}

/* Section header: title and description belong together */
.section-header {
    margin-bottom: 0;
}

.section-header + .section-desc {
    margin-top: 22px;
}

.section-title {
    overflow-wrap: break-word;
}

/* Block 2: no sticky column (it left large empty gaps) */
.why-pvc-layout {
    align-items: center;
}

.why-pvc-head,
.zhkh-docs {
    position: static;
}

.zhkh-layout {
    align-items: center;
}

.pvc-row {
    grid-template-columns: 210px 1fr;
}

.pvc-big {
    font-size: 2.3rem;
    white-space: nowrap;
}

/* Advantages: big number must not overlap the title */
.adv-item h3 {
    padding-right: 70px;
    line-height: 1.2;
}

.adv-number {
    font-size: 3.2rem;
}

/* Quiz polish */
.quiz-opt {
    position: relative;
    padding-right: 48px;
}

.quiz-opt::after {
    content: '→';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-weight: 800;
    opacity: 0.6;
    transition: opacity 0.2s ease, right 0.2s ease;
}

.quiz-opt:hover::after {
    opacity: 1;
    right: 16px;
}

/* Projects teaser: 4 in a row, captions always readable */
.portfolio-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.portfolio-item {
    aspect-ratio: 4 / 5;
}

.portfolio-overlay {
    opacity: 1;
    padding: 26px;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.35) 45%, transparent 70%);
}

.portfolio-overlay h3 {
    font-size: 1.25rem;
    line-height: 1.15;
    margin-bottom: 6px;
}

.portfolio-overlay p {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
}

/* Grids: never let long words push cards wider than the screen */
.why-grid > *,
.whom-grid > *,
.systems-grid > *,
.certs-grid > *,
.adv-grid > *,
.pvc-list > * {
    min-width: 0;
}

.cert-card h3,
.system-card h3,
.whom-card h3,
.why-item h3 {
    overflow-wrap: break-word;
    hyphens: auto;
}

@media (max-width: 1100px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: clamp(1.9rem, 8.5vw, 2.5rem);
        line-height: 1.05;
        hyphens: auto;
    }

    .hero h1 {
        font-size: clamp(2.1rem, 9.5vw, 2.8rem);
    }

    .hero-sub {
        font-size: 1.05rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-btns a,
    .hero-btns .btn-photo {
        display: flex;
        width: 100%;
        justify-content: center;
        padding: 16px 20px;
    }

    .pvc-row {
        grid-template-columns: 1fr;
    }

    .pvc-big {
        font-size: 2rem;
    }

    .adv-item {
        padding: 34px 24px;
    }

    .adv-number {
        font-size: 2.6rem;
        top: 18px;
        right: 20px;
    }

    .cert-card {
        grid-template-columns: 52px 1fr;
        padding: 20px;
        gap: 4px 16px;
    }

    .cert-icon {
        width: 52px;
        height: 52px;
        font-size: 0.9rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .portfolio-overlay {
        padding: 14px;
    }

    .portfolio-overlay h3 {
        font-size: 0.95rem;
    }

    .portfolio-overlay p {
        font-size: 0.68rem;
    }

    .cta-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-btns a {
        width: 100%;
        justify-content: center;
    }

    .whatsapp-link {
        padding: 16px 20px;
        font-size: 1rem;
    }

    .systems-footer .btn-primary,
    .systems-footer .btn-secondary,
    .zhkh-docs .btn-primary,
    .whom-cta .btn-primary {
        display: flex;
        width: 100%;
        padding: 16px 20px;
    }

    .quiz-q {
        font-size: 1.35rem;
    }
}

.hero-content {
    max-width: 940px;
}

@media (max-width: 768px) {
    .nav-wa {
        display: none;
    }

    .cta-section h2 {
        font-size: clamp(1.9rem, 8.5vw, 2.6rem);
        line-height: 1.1;
    }

    .faq-item {
        padding: 0 20px;
    }

    .faq-q {
        font-size: 1rem;
        padding: 22px 36px 22px 0;
    }
}

/* ====== LAYOUT WIDTH: content limited to 1320px, centred ======
   Section containers keep their 5% side padding as the gutter;
   content-box makes the padding sit outside the 1320px limit. */
.container {
    box-sizing: content-box;
    width: auto;
    max-width: 1320px;
}
/* hero is a flex column: auto margins would shrink the container, so stretch it explicitly */
.hero > .container {
    box-sizing: border-box;
    width: 100%;
    max-width: calc(1320px + 10vw);
}

/* ====== HERO v3: smaller type, brand-colour subtitle ====== */
.hero h1 {
    font-size: clamp(2.2rem, 4.6vw, 3.7rem);
    line-height: 1.08;
    margin-bottom: 20px;
}

.hero-sub {
    color: var(--accent);
    font-size: clamp(1rem, 1.7vw, 1.3rem);
    margin-bottom: 16px;
}

.hero-desc {
    font-size: 1.08rem;
    line-height: 1.65;
    max-width: 560px;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, 0.88);
}

.hero-badge {
    font-size: 0.75rem;
    margin-bottom: 20px;
}

.hero-chips li {
    font-size: 0.8rem;
}

.stat-num {
    font-size: 1.8rem;
}

.stat-label {
    font-size: 0.78rem;
}

/* ====== BUTTONS: rounded rectangles site-wide (was pill) ====== */
.btn-primary,
.btn-secondary,
.whatsapp-link,
.nav-wa,
.quiz-next,
.card-cta,
.quiz-wa,
.proj-filters button,
.quiz-chips button {
    border-radius: 12px;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: clamp(1.9rem, 8.4vw, 2.4rem);
    }

    .hero-sub {
        font-size: 0.95rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .stat-num {
        font-size: 1.6rem;
    }
}
/* floating WhatsApp: rounded rectangle on desktop, round icon on phones */
.wa-fab {
    border-radius: 14px;
}

@media (max-width: 768px) {
    .wa-fab {
        border-radius: 50%;
    }
}

/* ====== HEADER PHONE BUTTON ====== */
.nav-phone {
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.nav-phone svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ====== HOVER FOR TRANSPARENT (SECONDARY) BUTTONS ======
   Section-specific rules (.hero-btns / .cta-section) set their own background,
   so the hover state has to be at least as specific to win. */
.btn-secondary:hover,
.hero-btns .btn-secondary:hover,
.cta-section .btn-secondary:hover,
.systems-footer .btn-secondary:hover {
    background: rgba(255, 205, 0, 0.12);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 205, 0, 0.12);
}

.btn-secondary:focus-visible,
.btn-primary:focus-visible,
.nav-wa:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.proj-filters button:hover {
    background: rgba(255, 205, 0, 0.1);
    color: var(--accent);
}

.proj-filters button.active:hover {
    background: var(--accent-dark);
    color: var(--dark);
}


/* =====================================================================
   TYPOGRAPHY SYSTEM — one scale for the whole site
   Headings : section/page titles 56px · card titles 20px · lh 1.05–1.2
   Text     : lead 17.6px · body 16px · card 15.2px · lh 1.55
   Labels   : 12px / 800 / uppercase / ls .1em
   ===================================================================== */
:root {
    --fs-title: clamp(2.3rem, 4.2vw, 3.5rem);
    --fs-lead: 1.1rem;
    --fs-body: 1rem;
    --fs-card: 0.95rem;
    --fs-label: 0.75rem;
    --lh-text: 1.55;
}

body {
    line-height: var(--lh-text);
}

/* --- big titles: sections, page heroes, final CTA --- */
.section-title,
.blog-hero h1,
.cta-section h2 {
    font-size: var(--fs-title);
    line-height: 1.04;
}

.cta-section h2 {
    margin-bottom: 20px;
}

/* --- lead paragraphs under titles --- */
.section-desc,
.blog-hero p,
.cta-desc,
.whom-cta p,
.systems-footer p {
    font-size: var(--fs-lead);
    line-height: var(--lh-text);
}

/* --- card titles --- */
.why-item h3,
.whom-card h3,
.system-card h3,
.pvc-row h3,
.zhkh-docs h3 {
    font-size: 1.25rem;
    line-height: 1.2;
}

.adv-item h3 {
    font-size: 1.35rem;
    line-height: 1.2;
}

.cert-card h3 {
    font-size: 1.05rem;
    line-height: 1.25;
}

/* --- card / list text --- */
.why-item p,
.whom-card p,
.system-card p,
.pvc-row p,
.cert-card p,
.adv-item p,
.proj-body p,
.post-card p,
.featured-body p {
    font-size: var(--fs-card);
    line-height: var(--lh-text);
}

.zhkh-list li,
.faq-a p,
.calc-points li,
.zhkh-docs li {
    font-size: var(--fs-body);
    line-height: var(--lh-text);
}

.faq-q {
    font-size: 1.05rem;
    line-height: 1.4;
}

/* --- small uppercase labels: one look everywhere --- */
.whom-label,
.system-tag,
.proj-type,
.featured-badge,
.post-meta,
.quiz-step-label,
.ba-tag {
    font-size: var(--fs-label);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-badge {
    font-size: var(--fs-label);
    letter-spacing: 0.1em;
}

.proj-filters button {
    font-size: 0.9rem;
}

/* --- hero statistics: slightly larger numbers --- */
.stat-num {
    font-size: 2.3rem;
}

.stat-label {
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    :root {
        --fs-title: clamp(1.9rem, 8.4vw, 2.4rem);
        --fs-lead: 1rem;
        --fs-card: 0.95rem;
    }

    .stat-num {
        font-size: 2rem;
    }

    .faq-q {
        font-size: 1rem;
    }
}

.hero-desc {
    font-size: var(--fs-lead);
    line-height: var(--lh-text);
}

/* header phone: larger number */
.nav-phone {
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    padding: 12px 22px;
}


/* =====================================================================
   COMPACT CARDS
   ===================================================================== */

/* «Почему плоская кровля»: number sits close to the title */
.why-item {
    padding: 30px 28px 32px;
}

.why-num {
    font-size: 3rem;
    line-height: 0.9;
    margin-bottom: 12px;
}

.why-item h3 {
    margin-bottom: 10px;
}

/* «Почему ПВХ» rows */
.pvc-row {
    padding: 24px 30px;
    gap: 24px;
}

.pvc-row h3 {
    margin-bottom: 6px;
}

/* «Что Вы получаете» */
.whom-card {
    padding: 28px 26px 30px;
}

.whom-label {
    margin-bottom: 14px;
}

.whom-card h3 {
    margin-bottom: 10px;
}

.whom-cta {
    padding: 28px 36px;
    margin-top: 36px;
}

/* Systems */
.system-card {
    padding: 26px 26px 28px;
}

.system-tag {
    margin-bottom: 12px;
}

.system-card h3 {
    margin-bottom: 8px;
}

/* ЖКХ */
.zhkh-list li {
    padding: 12px 0 12px 38px;
}

.zhkh-list li::before {
    top: 14px;
}

.zhkh-docs {
    padding: 32px;
}

.zhkh-docs h3 {
    margin-bottom: 12px;
}

.zhkh-docs li {
    padding: 10px 0 10px 30px;
}

.zhkh-docs ul {
    margin-bottom: 24px;
}

/* Certificates */
.cert-card {
    padding: 20px 22px;
}

/* «Почему GOODROOF» */
.adv-item {
    padding: 34px 36px 36px;
}

.adv-item h3 {
    margin-bottom: 10px;
}

.adv-number {
    top: 18px;
    right: 24px;
}

/* Grids a little tighter */
.why-grid,
.whom-grid,
.systems-grid {
    gap: 20px;
    margin-top: 44px;
}

.certs-grid {
    gap: 16px;
    margin-top: 40px;
}

.adv-grid {
    margin-top: 44px;
}

.systems-footer {
    margin-top: 32px;
}

@media (max-width: 768px) {
    /* number on the left, title on the right, text below */
    .why-item {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 16px;
        align-items: center;
        padding: 22px 20px 24px;
    }

    .why-num {
        font-size: 2.4rem;
        margin: 0;
    }

    .why-item h3 {
        margin: 0;
    }

    .why-item p {
        grid-column: 1 / -1;
        margin-top: 12px;
    }

    .why-grid,
    .whom-grid,
    .systems-grid {
        gap: 14px;
        margin-top: 32px;
    }

    .pvc-row {
        padding: 22px 20px;
        gap: 10px;
    }

    .whom-card,
    .system-card {
        padding: 22px 20px 24px;
    }

    .whom-cta {
        padding: 24px 20px;
    }

    .zhkh-docs {
        padding: 24px 20px;
    }

    .cert-card {
        padding: 18px;
    }

    .certs-grid {
        gap: 12px;
    }

    .adv-item {
        padding: 26px 22px 28px;
    }
}

@media (max-width: 768px) {
    .why-item {
        grid-template-columns: 58px 1fr;
    }
}


/* ====== MOBILE: slightly smaller type ====== */
@media (max-width: 768px) {
    :root {
        --fs-title: clamp(1.75rem, 7.6vw, 2.2rem);
        --fs-lead: 0.95rem;
        --fs-body: 0.95rem;
        --fs-card: 0.9rem;
    }

    body {
        font-size: 15px;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.2rem);
    }

    .hero-sub {
        font-size: 0.9rem;
    }

    .hero-chips li {
        font-size: 0.78rem;
    }

    .stat-num {
        font-size: 1.85rem;
    }

    .stat-label {
        font-size: 0.72rem;
    }

    .why-item h3,
    .whom-card h3,
    .system-card h3,
    .pvc-row h3,
    .zhkh-docs h3 {
        font-size: 1.1rem;
    }

    .adv-item h3 {
        font-size: 1.15rem;
    }

    .cert-card h3 {
        font-size: 0.98rem;
    }

    .pvc-big {
        font-size: 1.8rem;
    }

    .faq-q {
        font-size: 0.95rem;
    }

    .quiz-q {
        font-size: 1.2rem;
    }

    .quiz-opt-title {
        font-size: 0.95rem;
    }

    .btn-primary,
    .btn-secondary,
    .whatsapp-link {
        font-size: 0.92rem;
    }
}


/* ====== MOBILE MENU: full screen, translucent ====== */
@media (max-width: 768px) {
    /* backdrop-filter on the header would become the containing block
       of the fixed menu, so switch it off while the menu is open */
    .nav-container.menu-open {
        backdrop-filter: none;
        background: transparent;
        border-bottom-color: transparent;
    }

    .nav-menu {
        inset: 0;
        right: auto;
        left: 100%;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        gap: 28px;
        background: rgba(10, 10, 10, 0.86);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        transition: left 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .nav-container.menu-open .nav-menu {
        left: 0;
        right: auto;
    }

    .nav-menu .nav-link {
        font-size: 1.25rem;
        font-weight: 600;
        letter-spacing: 0.04em;
    }

    body.menu-lock {
        overflow: hidden;
    }

    /* standalone CTA buttons stretch like the others */
    .why-pvc-cta {
        display: flex;
        width: 100%;
        padding: 16px 20px;
    }
}

/* ====== HERO: tighter vertical rhythm ====== */
.hero-badge {
    margin-bottom: 16px;
}

.hero h1 {
    margin-bottom: 14px;
}

.hero-sub {
    margin-bottom: 10px;
}

.hero-desc {
    margin-bottom: 26px;
}

.hero-chips {
    margin-top: 18px;
}

.hero-stats {
    margin-top: 52px;
    padding-top: 28px;
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 40px;
    }

    .hero-badge {
        margin-bottom: 12px;
    }

    .hero h1 {
        margin-bottom: 10px;
    }

    .hero-sub {
        margin-bottom: 8px;
    }

    .hero-desc {
        margin-bottom: 20px;
    }

    .hero-btns {
        gap: 10px;
    }

    .hero-chips {
        margin-top: 14px;
        gap: 6px 18px;
    }

    .hero-stats {
        margin-top: 32px;
        padding-top: 22px;
        gap: 20px 24px;
    }
}

/* mobile menu: more transparent (blur keeps the links readable) */
@media (max-width: 768px) {
    .nav-menu {
        background: rgba(10, 10, 10, 0.68);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }
}


/* =====================================================================
   CALCULATOR CARD — highlighted block with a light quiz panel
   ===================================================================== */
.calc-section {
    background: var(--darker);
}

.calc-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 56px;
    border: 1px solid rgba(255, 205, 0, 0.45);
    background:
        radial-gradient(ellipse at 0% 0%, rgba(255, 205, 0, 0.22), transparent 55%),
        radial-gradient(ellipse at 100% 100%, rgba(255, 205, 0, 0.12), transparent 50%),
        #1a1a1a;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 6px rgba(255, 205, 0, 0.05);
}

.calc-layout {
    gap: 56px;
}

/* light quiz panel */
.quiz {
    background: #ffffff;
    color: #121212;
    border: none;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    min-height: 0;
}

.quiz .quiz-progress span {
    background: #e7e7e7;
}

.quiz .quiz-progress span.on {
    background: var(--accent);
}

.quiz .quiz-step-label {
    color: #9a7b00;
}

.quiz .quiz-q {
    color: #121212;
}

.quiz .quiz-opt {
    background: #f5f5f5;
    border: 1px solid #e6e6e6;
    color: #121212;
}

.quiz .quiz-opt:hover,
.quiz .quiz-opt.sel {
    background: #fff8d6;
    border-color: var(--accent);
}

.quiz .quiz-opt-hint {
    color: #6b6b6b;
}

.quiz .quiz-opt::after {
    color: #b38f00;
}

.quiz .quiz-area {
    background: #f5f5f5;
    border: 1px solid #e6e6e6;
}

.quiz .quiz-area:focus-within {
    border-color: var(--accent);
    background: #fff;
}

.quiz .quiz-area input {
    color: #121212;
}

.quiz .quiz-area span {
    color: #6b6b6b;
}

.quiz .quiz-chips button {
    background: #fff8d6;
    color: #7a6200;
    border-color: #f0dc8a;
}

.quiz .quiz-chips button:hover {
    background: var(--accent);
    color: #121212;
}

.quiz .quiz-note {
    color: #6b6b6b;
}

.quiz .quiz-back {
    color: #6b6b6b;
}

.quiz .quiz-back:hover {
    color: #121212;
}

.quiz .quiz-result-label {
    color: #6b6b6b;
}

.quiz .quiz-result {
    color: #121212;
    background: linear-gradient(transparent 62%, rgba(255, 205, 0, 0.55) 62%);
    display: inline;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.quiz .quiz-result-sub {
    color: #333;
    margin-top: 10px;
}

.quiz .quiz-call {
    color: #555;
}

.quiz .quiz-wa {
    color: #fff;
}

@media (max-width: 1100px) {
    .calc-card {
        padding: 40px;
    }

    .calc-layout {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .calc-card {
        padding: 26px 18px 18px;
        border-radius: 22px;
        margin: 0 -4px;
    }

    .quiz {
        padding: 22px 18px;
        border-radius: 16px;
    }
}

.quiz .quiz-result {
    font-weight: 700;
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    line-height: 1.25;
}

@media (max-width: 768px) {
    .quiz .quiz-result {
        font-size: 1.55rem;
    }
}


/* =====================================================================
   SITE FOOTER
   ===================================================================== */
.site-footer {
    padding: 64px 0 28px;
    background: var(--darker);
    border-top: 1px solid var(--glass-border);
}

.site-footer .container {
    display: block;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
    gap: 40px;
}

.footer-logo .logo-img {
    height: 40px;
}

.footer-brand p {
    margin-top: 18px;
    max-width: 320px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--light-gray);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    font-size: var(--fs-label);
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 6px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 0.92rem;
    width: fit-content;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-col span {
    color: var(--light-gray);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 4px;
}

.footer-contacts .footer-phone {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--white);
}

.footer-bottom {
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid var(--glass-border);
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px 28px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 44px 0 90px; /* room for the floating WhatsApp button */
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px 20px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-contacts {
        grid-column: 1 / -1;
    }

    .footer-col a {
        font-size: 0.9rem;
    }

    .footer-bottom {
        margin-top: 32px;
    }
}

/* =====================================================================
   CONTACTS CTA — mobile: no e-mail line, compact trust items
   ===================================================================== */
@media (max-width: 768px) {
    .cta-mail {
        display: none;
    }

    .cta-btns {
        margin-bottom: 28px;
    }

    .trust-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px 16px;
        justify-items: start;
        max-width: 340px;
        margin: 0 auto;
        opacity: 0.8;
    }

    .trust-item {
        font-size: 0.82rem;
        gap: 8px;
    }

    .trust-item svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 768px) {
    .trust-row {
        max-width: 360px;
        text-align: left;
    }

    .trust-item {
        white-space: nowrap;
        font-size: 0.8rem;
    }
}


/* =====================================================================
   HEADER BACKGROUND ON A SEPARATE LAYER
   A backdrop-filter on .nav-container made it a "backdrop root" and a
   containing block, so the mobile menu inside it could not blur the page
   (delayed on the home page, missing on blog/projects). The header's
   background + blur now live on ::before; the header element itself has
   no filter at all.
   ===================================================================== */
.nav-container,
.nav-container.scrolled,
.blog-page .nav-container {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
}

body.js-ready .nav-container {
    transition: padding 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-container::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.4s ease, border-color 0.4s ease;
}

.nav-container.scrolled::before,
.blog-page .nav-container::before {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom-color: var(--glass-border);
}

/* while the full-screen menu is open the header strip blends into it */
.nav-container.menu-open::before {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
}

/* quiz panel: softer light grey instead of pure white */
.quiz {
    background: #e7e6e1;
}

.quiz .quiz-progress span {
    background: #d2d0c8;
}

.quiz .quiz-opt,
.quiz .quiz-area {
    background: #f4f3ef;
    border-color: #d6d4cc;
}

.quiz .quiz-opt:hover,
.quiz .quiz-opt.sel {
    background: #fff6d1;
}

.quiz .quiz-area:focus-within {
    background: #faf9f6;
}

.quiz .quiz-chips button {
    background: #f4ecc6;
    border-color: #e0cf86;
}

/* quiz panel: one step darker */
.quiz {
    background: #d4d1c8;
}

.quiz .quiz-progress span {
    background: #bdb9ad;
}

.quiz .quiz-opt,
.quiz .quiz-area {
    background: #e6e4dd;
    border-color: #c4c0b5;
}

.quiz .quiz-opt:hover,
.quiz .quiz-opt.sel {
    background: #f5ebc2;
}

.quiz .quiz-area:focus-within {
    background: #efede7;
}

.quiz .quiz-opt-hint,
.quiz .quiz-note,
.quiz .quiz-back,
.quiz .quiz-result-label,
.quiz .quiz-area span {
    color: #55534d;
}

.quiz .quiz-call {
    color: #3f3d38;
}

.quiz .quiz-step-label {
    color: #7d6300;
}

.quiz .quiz-chips button {
    background: #ece0a8;
    border-color: #d4c071;
}


/* =====================================================================
   PERFORMANCE: hero background, quicker hero entrance
   ===================================================================== */
.hero {
    background-image: url('hero-bg.webp');
    background-color: #1b2026;
}

@media (max-width: 768px) {
    .hero {
        background-image: url('hero-bg-m.webp');
    }
}

/* hero content fades in fast so the first screen is readable almost at once */
.hero-badge,
.hero h1,
.hero-sub,
.hero-desc,
.hero-btns,
.hero-chips,
.hero-stats {
    animation: fadeUp 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-badge { animation-delay: 0s; }
.hero h1 { animation-delay: 0.04s; }
.hero-sub { animation-delay: 0.08s; }
.hero-desc { animation-delay: 0.12s; }
.hero-btns { animation-delay: 0.16s; }
.hero-chips { animation-delay: 0.2s; }
.hero-stats { animation-delay: 0.26s; }

/* =====================================================================
   CASCADE REVEAL (driven by common.js)
   .rv     — waiting off-screen: hidden, shifted down
   .rv-in  — entering: per-element delay from --rd
   Both classes are removed after the entrance, so the element gets back
   its own hover transitions (no lag, no !important overrides).
   ===================================================================== */
.rv {
    opacity: 0;
    transform: translateY(28px);
    transition: none !important; /* hide instantly, never animate out */
}

.rv.rv-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease var(--rd, 0ms), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--rd, 0ms) !important;
}

@media (prefers-reduced-motion: reduce) {
    .rv {
        opacity: 1;
        transform: none;
    }

    .hero-badge,
    .hero h1,
    .hero-sub,
    .hero-desc,
    .hero-btns,
    .hero-chips,
    .hero-stats {
        animation: none;
        opacity: 1;
    }
}


/* =====================================================================
   CARD HOVER: subtle warm lift of the background colour
   (not applied to «Решение под Вашу задачу» and the calculator)
   ===================================================================== */
.why-item,
.pvc-row,
.system-card,
.cert-card,
.adv-item,
.zhkh-docs,
.proj-card,
.post-card,
.featured-post {
    transition: background-color 0.3s ease, background 0.3s ease, border-color 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease;
}

.why-item:hover,
.system-card:hover,
.cert-card:hover,
.zhkh-docs:hover,
.proj-card:hover,
.post-card:hover,
.featured-post:hover {
    background: #27251f;
}

.pvc-row:hover {
    background: #2b2923;
}

.adv-item:hover {
    background: #2e2c26;
}

.system-card-hl:hover {
    background: linear-gradient(160deg, rgba(255, 205, 0, 0.1), #27251f 70%);
}

/* «Скоро» cards are not links — keep them static */
.post-card.soon:hover {
    background: var(--mid);
}


/* =====================================================================
   CERTIFICATES: cards stand out from the section background
   ===================================================================== */
.cert-card {
    background: linear-gradient(150deg, #2a2822 0%, #222120 60%);
    border: 1px solid rgba(255, 205, 0, 0.18);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.cert-card:hover {
    background: linear-gradient(150deg, #34312a 0%, #282622 60%);
    border-color: rgba(255, 205, 0, 0.45);
    transform: translateY(-4px);
}

.cert-icon {
    background: rgba(255, 205, 0, 0.14);
    border-color: rgba(255, 205, 0, 0.4);
}

/* mobile hero: more air around the badge (more above than below) */
@media (max-width: 768px) {
    .hero {
        padding-top: 116px;
    }

    .hero-badge {
        margin-bottom: 18px;
    }
}

/* mobile hero: more space between the checklist and the statistics */
@media (max-width: 768px) {
    .hero-stats {
        margin-top: 44px;
    }
}
