*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/*
:root {
--primary: #28698F;
--primary-dark: #1a4a6b;
--primary-bg: #0f2e42;
--primary-light: #B7DFF6;
--primary-pale: #E8F4FB;
--secondary: #AA9441;
--secondary-dark: #8a7635;
--secondary-light: #d4be7a;
--white: #ffffff;
--bg-light: #F5F3EE;
--text-primary: #111111;
--text-muted: #6b7280;
}*/



#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-logo {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    animation: pulse 1.5s ease-in-out infinite;
    border-radius: 50%;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* Скрыть экран загрузки после загрузки */
.loaded #loading-screen {
    opacity: 0;
    pointer-events: none;
}



body {
font-family: 'Barlow', sans-serif;
background: var(--white);
color: var(--text-primary);
overflow-x: hidden;
}

/* ── NAV ── */
.nav {
position: absolute;
top: 0; left: 0; right: 0;
z-index: 100;
display: flex;
align-items: center;
justify-content: space-between;
padding: 24px 48px;
}

.nav-logo {
display: flex;
align-items: center;
gap: 14px;
text-decoration: none;
}

.nav-logo-img {
width: 52px; height: 52px;
border-radius: 50%;
object-fit: cover;
border: 2px solid color-mix(in srgb, var(--white) 40%, transparent);
}

.nav-logo-text {
font-family: 'Bebas Neue', sans-serif;
font-size: 22px;
letter-spacing: 0.06em;
color: var(--white);
line-height: 1;
}

.nav-logo-sub {
font-size: 10px;
color: color-mix(in srgb, var(--white) 55%, transparent);
letter-spacing: 0.15em;
text-transform: uppercase;
margin-top: 2px;
}

.nav-links {
display: flex;
gap: 6px;
list-style: none;
}

.nav-links a {
font-size: 12px;
font-weight: 600;
letter-spacing: 0.12em;
text-transform: uppercase;
color: color-mix(in srgb, var(--white) 75%, transparent);
text-decoration: none;
padding: 8px 16px;
border-radius: 4px;
transition: all 0.2s;
}

.nav-links a:hover { color: var(--white); background: color-mix(in srgb, var(--white) 12%, transparent); }

.nav-cta {
background: var(--secondary) !important;
color: var(--white) !important;
border-radius: 4px;
padding: 10px 22px !important;
}

.nav-cta:hover { background: var(--secondary-dark) !important; }

/* ── HERO ── */
.hero {
position: relative;
height: 100vh;
min-height: 640px;
display: flex;
flex-direction: column;
justify-content: flex-end;
overflow: hidden;
}

.hero-bg {
position: absolute;
inset: 0;
background-image: url('https://www.tenfingershs.com/wp-content/themes/tenfingers-theme/images/background-hero-pc.jpg');
background-size: cover;
background-position: center 30%;
}

.hero-overlay {
position: absolute;
inset: 0;
background: linear-gradient(
    to bottom,
    rgba(10,30,45,0.4) 0%,
    rgba(10,30,45,0.15) 35%,
    rgba(10,30,45,0.78) 100%
);
}

.hero-body {
position: relative;
z-index: 10;
padding: 0 48px 60px;
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 40px;
}

.hero-left { flex: 1; min-width: 0; }

.hero-badge {
display: inline-flex;
align-items: center;
gap: 8px;
background: var(--secondary);
color: var(--white);
font-size: 11px;
font-weight: 700;
letter-spacing: 0.15em;
text-transform: uppercase;
padding: 6px 16px;
border-radius: 2px;
margin-bottom: 20px;
white-space: nowrap;
}

.hero-badge::before {
content: '';
display: block;
width: 6px; height: 6px;
border-radius: 50%;
background: var(--white);
flex-shrink: 0;
}

.hero-title {
font-family: 'Bebas Neue', sans-serif;
font-size: clamp(72px, 10vw, 140px);
color: var(--white);
line-height: 0.92;
letter-spacing: 0.01em;
margin-bottom: 28px;
}

.hero-title em {
font-style: normal;
color: var(--secondary-light);
}

.hero-btns {
display: flex;
gap: 14px;
flex-wrap: wrap;
}

.btn-primary {
font-family: 'Barlow', sans-serif;
font-weight: 700;
font-size: 13px;
letter-spacing: 0.14em;
text-transform: uppercase;
background: var(--secondary-light);
color: var(--white);
border: none;
padding: 16px 36px;
border-radius: 3px;
cursor: pointer;
text-decoration: none;
display: inline-block;
transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover { background: var(--secondary-dark); transform: translateY(-1px); }

.btn-outline {
font-family: 'Barlow', sans-serif;
font-weight: 700;
font-size: 13px;
letter-spacing: 0.14em;
text-transform: uppercase;
background: transparent;
color: var(--white);
border: 2px solid color-mix(in srgb, var(--white) 50%, transparent);
padding: 14px 36px;
border-radius: 3px;
cursor: pointer;
text-decoration: none;
display: inline-block;
transition: all 0.2s;
}

.btn-outline:hover { border-color: var(--white); background: color-mix(in srgb, var(--white) 10%, transparent); }

/* ── RATING PILLS (hero sidebar) ── */
.hero-right {
display: flex;
flex-direction: column;
gap: 12px;
flex-shrink: 0;
}

.rating-pill {
background: color-mix(in srgb, var(--white) 12%, transparent);
border: 1px solid color-mix(in srgb, var(--white) 20%, transparent);
border-radius: 10px;
padding: 14px 20px;
display: flex;
flex-direction: column;
gap: 4px;
text-decoration: none;
transition: background 0.2s;
min-width: 160px;
}

.rating-pill:hover { background: color-mix(in srgb, var(--white) 20%, transparent); }

/* row 1 — logo */
.rating-pill-logo {
height: 20px;
width: auto;
opacity: 0.9;
display: block;
margin-bottom: 6px;
align-self: flex-start;
}

.rating-pill-logo.b-10 {
    filter: brightness(10);
}

.rating-pill-logo[src*="Google"],
.rating-pill-logo.google-logo {
height: 24px;
margin-bottom: 0;  
}

/* row 2 — score + stars */
.rating-pill-row2 {
display: flex;
align-items: baseline;
gap: 8px;
}

.rating-pill-score {
font-family: 'Bebas Neue', sans-serif;
font-size: 28px;
color: var(--white);
line-height: 1;
}

.rating-pill-stars {
font-size: 13px;
color: #FEBE14;
letter-spacing: 1px;
}

/* row 3 — count */
.rating-pill-count {
font-size: 11px;
color: color-mix(in srgb, var(--white) 50%, transparent);
letter-spacing: 0.04em;
}

/* ── TICKER ── */
.ticker {
background: var(--secondary);
padding: 14px 0;
overflow: hidden;
white-space: nowrap;
}

.ticker-track {
display: inline-flex;
animation: ticker-go 30s linear infinite;
}

@keyframes ticker-go {
from { transform: translateX(0); }
to { transform: translateX(-50%); }
}

.ticker-item {
font-family: 'Bebas Neue', sans-serif;
font-size: 18px;
letter-spacing: 0.1em;
color: var(--white);
padding: 0 36px;
display: inline-flex;
align-items: center;
gap: 20px;
}

.ticker-item::after {
content: '✦';
color: color-mix(in srgb, var(--white) 35%, transparent);
font-size: 9px;
}

/* ── ABOUT ── */
.about {
display: grid;
grid-template-columns: 1fr 1fr;
}

.about-photo {
position: relative;
overflow: hidden;
max-height: 900px;
}

.about-photo img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}

.about-badge {
position: absolute;
bottom: 28px;
right: 28px;
background: var(--secondary);
color: var(--white);
padding: 18px 22px;
border-radius: 6px;
text-align: center;
}

.about-badge .big {
font-family: 'Bebas Neue', sans-serif;
font-size: 46px;
line-height: 1;
display: block;
}

.about-badge .sm {
font-size: 11px;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
opacity: 0.85;
}

.about-content {
background: var(--primary-bg);
padding: 80px 64px;
display: flex;
flex-direction: column;
justify-content: center;
}

.section-tag {
font-size: 11px;
font-weight: 700;
letter-spacing: 0.2em;
text-transform: uppercase;
color: var(--secondary-light);
margin-bottom: 14px;
}

.section-title {
font-family: 'Bebas Neue', sans-serif;
font-size: clamp(44px, 5vw, 72px);
line-height: 0.95;
letter-spacing: 0.02em;
margin-bottom: 28px;
}

.about-content .section-title { color: var(--white); }

.about-text {
font-size: 16px;
line-height: 1.75;
color: color-mix(in srgb, var(--white) 62%, transparent);
margin-bottom: 18px;
}

.about-quote {
font-size: 15px;
font-style: italic;
line-height: 1.6;
color: var(--secondary-light);
padding-left: 18px;
border-left: 3px solid var(--secondary);
margin-top: 20px;
}

/* ── WHY ── */
.why {
background: var(--bg-light);
padding: 96px 48px;
}

.why-inner { max-width: 1280px; margin: 0 auto; }

.why-head {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 60px;
margin-bottom: 56px;
align-items: end;
}

.why .section-title { color: var(--primary-dark); margin-bottom: 0; }
.why .section-tag { color: var(--secondary); }

.why-intro {
font-size: 17px;
line-height: 1.7;
color: #4a5568;
padding-left: 20px;
border-left: 3px solid var(--secondary);
}

.features {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
}

.feature {
background: var(--white);
padding: 36px 28px;
border-radius: 6px;
border-bottom: 4px solid transparent;
transition: border-color 0.25s, transform 0.2s;
}

.feature:hover { border-color: var(--secondary); transform: translateY(-4px); }

.feat-icon {
width: 56px; height: 56px;
background: var(--primary);
border-radius: 10px;
display: flex; align-items: center; justify-content: center;
margin-bottom: 20px;
}

.feat-icon img { width: 28px; height: 28px; object-fit: fill; }

.feature h3 {
font-family: 'Barlow', sans-serif;
font-weight: 900;
font-size: 17px;
color: var(--primary-dark);
margin-bottom: 10px;
text-transform: uppercase;
letter-spacing: 0.04em;
}

.feature p { font-size: 14px; line-height: 1.65; color: var(--text-muted); }

/* ── SERVICES ── */
.services {
background: var(--white);
padding: 96px 48px;
}

.services-inner { max-width: 1280px; margin: 0 auto; }

.services-head {
display: flex;
align-items: flex-end;
justify-content: space-between;
margin-bottom: 48px;
gap: 40px;
}

.services .section-title { color: var(--primary-dark); margin-bottom: 0; }
.services .section-tag { color: var(--secondary); }

.services-note { font-size: 16px; line-height: 1.7; color: var(--text-muted); max-width: 380px; }

.acc-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}

.acc-item {
border: 1.5px solid var(--border);
border-radius: 6px;
overflow: hidden;
cursor: pointer;
transition: border-color 0.2s;
}

.acc-item.open, .acc-item:hover { border-color: var(--primary); }

.acc-trigger {
width: 100%; background: none; border: none; cursor: pointer;
padding: 18px 20px;
display: flex; align-items: center; gap: 14px;
text-align: left;
}

.acc-ico {
width: 46px; height: 46px; flex-shrink: 0;
background: var(--primary-pale); border-radius: 8px;
display: flex; align-items: center; justify-content: center;
transition: background 0.2s;
}

.acc-item.open .acc-ico { background: var(--primary); }
.acc-item.open .acc-ico img { filter: brightness(10); }
.acc-ico img { width: 24px; height: 24px; object-fit: contain; }

.acc-label {
font-size: 15px; font-weight: 700; color: var(--primary-dark);
flex: 1; text-transform: uppercase; letter-spacing: 0.04em;
}

.acc-arrow {
font-size: 22px; color: var(--primary); flex-shrink: 0;
transition: transform 0.3s; font-weight: 300;
}

.acc-item.open .acc-arrow { transform: rotate(45deg); }

.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.acc-item.open .acc-body { max-height: 300px; }

.acc-body-inner {
background: var(--primary-pale);
padding: 6px 20px 20px 80px;
font-size: 14px; line-height: 1.8; color: var(--primary-dark);
}

/* ── REVIEWS ── */
.reviews { background: var(--primary-bg); padding: 96px 48px; }
.reviews-inner { max-width: 1280px; margin: 0 auto; }
.reviews .section-title { color: var(--white); margin-bottom: 8px; }
.reviews .section-tag { color: var(--secondary-light); margin-bottom: 12px; }

.reviews-head {
display: flex; align-items: flex-end;
justify-content: space-between;
margin-bottom: 48px; gap: 30px;
}

.rating-inline { display: flex; gap: 14px; flex-shrink: 0; }

/* ── RATING BOX (reviews section) ── */
.rating-box {
background: color-mix(in srgb, var(--white) 7%, transparent);
border: 1px solid color-mix(in srgb, var(--white) 12%, transparent);
border-radius: 10px;
padding: 16px 16px;
text-decoration: none;
transition: background 0.2s;
min-width: 150px;
display: flex;
flex-direction: column;
gap: 4px;
}

.rating-box:hover { background: color-mix(in srgb, var(--white) 14%, transparent); }

/* row 1 — logo */
.rating-box-logo {
height: 20px;
width: auto;
display: block;
margin-bottom: 6px;
filter: brightness(10);
opacity: 0.85;
align-self: flex-start;
}

.rating-box-logo.google-logo { filter: none; opacity: 1; }

.rating-box-logo[src*="Google"],
.rating-box-logo.google-logo {
height: 24px;
margin-bottom: 0; 
}

/* row 2 — score + stars */
.rating-box-row2 {
display: flex;
align-items: baseline;
gap: 8px;
}

.rating-box .score {
font-family: 'Bebas Neue', sans-serif;
font-size: 32px;
color: var(--white);
line-height: 1;
}

.rating-box .stars {
font-size: 13px;
color: #FEBE14;
letter-spacing: 2px;
}

/* row 3 — count */
.rating-box .count {
font-size: 11px;
color: color-mix(in srgb, var(--white) 40%, transparent);
letter-spacing: 0.04em;
}

.review-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.rev-card {
background: color-mix(in srgb, var(--white) 5%, transparent);
border: 1px solid color-mix(in srgb, var(--white) 10%, transparent);
border-radius: 8px; padding: 24px;
display: flex; flex-direction: column; gap: 14px;
transition: background 0.2s, transform 0.2s;
}

.rev-card:hover { background: color-mix(in srgb, var(--white) 9%, transparent); transform: translateY(-3px); }

.rev-top { display: flex; align-items: center; gap: 12px; }

.rev-avatar {
width: 40px; height: 40px; border-radius: 50%;
background: var(--primary);
display: flex; align-items: center; justify-content: center;
font-weight: 700; font-size: 13px; color: var(--white); flex-shrink: 0;
}

.rev-name { font-weight: 700; font-size: 14px; color: var(--white); }
.rev-stars { font-size: 12px; color: #FEBE14; letter-spacing: 1px; }
.rev-text { font-size: 14px; line-height: 1.65; color: color-mix(in srgb, var(--white) 60%, transparent); flex: 1; }

.rev-link {
font-size: 12px; color: var(--secondary-light);
text-decoration: none; font-weight: 600; letter-spacing: 0.05em; opacity: 0.7;
}

.rev-link:hover { opacity: 1; }

/* ── CONTACT ── */
.contact { background: var(--bg-light); padding: 96px 48px; }

.contact-inner {
max-width: 1280px; margin: 0 auto;
display: grid; grid-template-columns: 1fr 1fr;
gap: 80px; align-items: center;
}

.contact .section-title { color: var(--primary-dark); }
.contact .section-tag { color: var(--secondary); }

.contact-list { margin-top: 36px; display: flex; flex-direction: column; gap: 20px; }

.contact-row { display: flex; align-items: center; gap: 16px; }

.contact-dot {
width: 40px; height: 40px; border-radius: 6px;
background: var(--primary);
display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.contact-dot img { width: 18px; height: 18px; filter: brightness(10); }

.contact-text { font-size: 15px; line-height: 1.6; color: #374151; }

.contact-text a {
color: var(--primary-dark); text-decoration: none;
font-weight: 600; display: block;
}

.contact-text a:hover { color: var(--secondary-dark); }

.contact-area { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

.contact-right {
background: var(--primary);
border-radius: 10px;
padding: 52px 48px;
text-align: center;
}

.contact-right h3 {
font-family: 'Bebas Neue', sans-serif;
font-size: 40px; color: var(--white); letter-spacing: 0.04em; margin-bottom: 12px;
}

.contact-right p {
font-size: 15px; color: color-mix(in srgb, var(--white) 65%, transparent);
line-height: 1.6; margin-bottom: 32px;
}

/* ── FOOTER ── */
.footer {
background: var(--primary-bg);
padding: 28px 48px;
display: flex; align-items: center;
justify-content: space-between; gap: 20px; flex-wrap: wrap;
}

.footer-brand {
font-family: 'Bebas Neue', sans-serif;
font-size: 20px; letter-spacing: 0.06em;
color: color-mix(in srgb, var(--white) 40%, transparent);
}

.footer-copy { font-size: 12px; color: color-mix(in srgb, var(--white) 22%, transparent); letter-spacing: 0.04em; }

/* ── FLOATING ACTION BUTTON ── */
.fab-wrap {
position: fixed;
bottom: 28px;
right: 28px;
z-index: 9999;
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fab-wrap.visible {
opacity: 1;
visibility: visible;
}

.fab-items {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
pointer-events: none;
opacity: 0;
transform: translateY(16px);
transition: opacity 0.25s ease, transform 0.25s ease;
}

.fab-wrap.open .fab-items {
pointer-events: all;
opacity: 1;
transform: translateY(0);
}

.fab-item {
width: 48px; height: 48px;
border-radius: 50%;
background: var(--white);
border: 2px solid var(--primary);
display: flex; align-items: center; justify-content: center;
text-decoration: none;
box-shadow: 0 4px 14px rgba(0,0,0,0.18);
transition: transform 0.2s, background 0.2s;
position: relative;
}

.fab-item:hover {
transform: scale(1.12);
background: var(--primary-pale);
}

.fab-item svg { width: 20px; height: 20px; }

/* tooltip */
.fab-item::before {
content: attr(data-tip);
position: absolute;
right: 58px;
background: var(--primary-bg);
color: var(--white);
font-size: 11px;
font-weight: 600;
letter-spacing: 0.06em;
white-space: nowrap;
padding: 5px 10px;
border-radius: 4px;
opacity: 0;
pointer-events: none;
transition: opacity 0.15s;
}

.fab-item:hover::before { opacity: 1; }

/* staggered entrance */
.fab-item:nth-child(1) { transition-delay: 0.04s; }
.fab-item:nth-child(2) { transition-delay: 0.08s; }
.fab-item:nth-child(3) { transition-delay: 0.12s; }
.fab-item:nth-child(4) { transition-delay: 0.16s; }

.fab-btn {
width: 56px; height: 56px;
border-radius: 50%;
background: var(--primary);
border: 3px solid var(--white);
display: flex; align-items: center; justify-content: center;
cursor: pointer;
box-shadow: 0 6px 20px rgba(0,0,0,0.25);
transition: background 0.2s, transform 0.3s;
flex-shrink: 0;
}

.fab-btn:hover { background: var(--primary-dark); }

.fab-wrap.open .fab-btn { transform: rotate(45deg); }

.fab-btn svg { width: 22px; height: 22px; }

/* ── PORTFOLIO ── */
.portfolio {
background: var(--primary-bg);
padding: 96px 48px;
overflow: hidden;
}

.portfolio-inner {
max-width: 1280px;
margin: 0 auto 48px;
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 40px;
}

.portfolio .section-title { color: var(--white); margin-bottom: 0; }
.portfolio .section-tag { color: #d4be7a; }

.portfolio-note {
font-size: 16px;
line-height: 1.7;
color: color-mix(in srgb, var(--white) 50%, transparent);
max-width: 360px;
text-align: right;
}

.portfolio .owl-carousel {
max-width: 1280px;
margin: 0 auto;
}

.portfolio .owl-item .item {
border-radius: 12px;
overflow: hidden;
aspect-ratio: 1 / 1;
}

.twentytwenty-container {
border-radius: 12px;
overflow: hidden;
}
.portfolio .owl-item .item .twentytwenty-container {
}

.portfolio .owl-item .item .twentytwenty-container img {
    object-fit: cover !important;
}
.twentytwenty-overlay:hover { background: rgba(0,0,0,0) !important; }

.twentytwenty-before-label::before,
.twentytwenty-after-label::before {
font-family: 'Barlow', sans-serif;
font-weight: 700;
font-size: 13px;
letter-spacing: 0.1em;
padding: 5px 14px;
border-radius: 100px;
}

.twentytwenty-before-label::before {
background: rgba(0,0,0,0.55);
color: var(--white);
}

.twentytwenty-after-label::before {
background: #AA9441;
color: var(--white);
}

.twentytwenty-handle {background: var(--secondary); margin-top: 0px;

}


.twentytwenty-left-arrow, .twentytwenty-right-arrow { border-color: var(--white); }

.portfolio .owl-dots { margin-top: 28px; text-align: center; }
.portfolio .owl-dot span {
background: color-mix(in srgb, var(--white) 25%, transparent) !important;
width: 8px !important; height: 8px !important;
border-radius: 50% !important;
margin: 0 4px !important;
transition: background 0.2s !important;
}
.portfolio .owl-dot.active span { background: #AA9441 !important; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
.nav { padding: 18px 24px; }
.nav-links { display: none; }

/* hero mobile — column layout, ratings below buttons */
.hero-body {
    padding: 0 20px 32px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    /* push content down but ensure everything fits */
    justify-content: flex-end;
}

.hero-left { width: 100%; }

.hero-badge {
    font-size: 10px;
    letter-spacing: 0.1em;
    padding: 5px 12px;
    margin-bottom: 12px;
}

.hero-title {
    font-size: clamp(52px, 14vw, 80px);
    margin-bottom: 18px;
}

/* ratings row below buttons */
.hero-right {
    flex-direction: row;
    gap: 10px;
    width: 100%;
}

.rating-pill {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
}

.rating-pill-score { font-size: 22px; }
.rating-pill-stars { font-size: 11px; }
.rating-pill-count { font-size: 10px; }

.about { grid-template-columns: 1fr; }
.about-photo { max-height: 340px; min-height: 240px; }
.about-content { padding: 48px 24px; }

.why, .services, .reviews, .contact { padding: 60px 24px; }
.why-head { grid-template-columns: 1fr; gap: 24px; }
.features { grid-template-columns: 1fr 1fr; }
.services-head { flex-direction: column; align-items: flex-start; }
.acc-grid { grid-template-columns: 1fr; }
.reviews-head { flex-direction: column; align-items: flex-start; }
.review-cards { grid-template-columns: 1fr; }
.contact-inner { grid-template-columns: 1fr; gap: 40px; }
.contact-right { padding: 36px 24px; }
.footer { padding: 24px; flex-direction: column; align-items: flex-start; }

.fab-wrap { bottom: 20px; right: 20px; }
.portfolio { padding: 60px 0; }
.portfolio-inner { padding: 0 24px; flex-direction: column; align-items: flex-start; gap: 16px; }
.portfolio-note { text-align: left; }
.portfolio .owl-carousel { padding: 0 24px; }
}

@media (max-width: 520px) {
.features { grid-template-columns: 1fr; }

.hero-right { gap: 8px; }

.rating-pill { padding: 8px 10px; }
.rating-pill-logo { height: 16px; margin-bottom: 4px; }
.rating-pill-logo[src*="Google"],
.rating-pill-logo.google-logo { height: 20px; }
.rating-pill-score { font-size: 20px; }
}
.portfolio .owl-dots {
margin-top: 28px;
text-align: center;
display: block !important;
}

.portfolio .owl-dot {
display: inline-block;
margin: 0 4px;
}

.portfolio .owl-dot span {
display: block;
width: 10px !important;
height: 10px !important;
border-radius: 50% !important;
background: color-mix(in srgb, var(--white) 30%, transparent) !important;
transition: all 0.3s ease;
}

.portfolio .owl-dot.active span {
background: #AA9441 !important;
transform: scale(1.2);
}

.portfolio .owl-dot:hover span {
background: color-mix(in srgb, var(--white) 60%, transparent) !important;
}

.twentytwenty-left-arrow,
.twentytwenty-right-arrow {
width: 0;
height: 0;
border: 6px solid transparent;
position: absolute;
top: 50%;
margin-top: -6px;
}

.twentytwenty-left-arrow {
left: 50%;
margin-left: -20px;
border-right-color: var(--white) !important; /* цвет стрелки */
}

.twentytwenty-right-arrow {
right: 50%;
margin-right: -20px;
border-left-color: var(--white) !important; /* цвет стрелки */
}

/* Дополнительно: убедитесь, что handle имеет корректный z-index и фон */
.twentytwenty-handle {

}

/* Убираем лишние фоны, которые могут мешать */
.twentytwenty-handle:before,
.twentytwenty-handle:after {
display: none;
}

.tf-modal {
display: none;
position: fixed;
inset: 0;
z-index: 99999;
background: rgba(0,0,0,0.55);
align-items: center;
justify-content: center;
}

.tf-modal.open { display: flex; }

.tf-modal-content {
background: var(--white);
border-radius: 10px;
padding: 48px 40px;
width: 100%;
max-width: 480px;
position: relative;
max-height: 90vh;
overflow-y: auto;
}

.tf-modal-content h2 {
font-family: 'Bebas Neue', sans-serif;
font-size: 32px;
color: var(--primary-dark);
letter-spacing: 0.04em;
margin-bottom: 24px;
}

.tf-close {
position: absolute;
top: 16px; right: 20px;
font-size: 28px;
color: var(--text-muted);
cursor: pointer;
line-height: 1;
}

.tf-close:hover { color: var(--text-primary); }

.tf-form-group {
display: flex;
flex-direction: column;
gap: 6px;
margin-bottom: 16px;
}

.tf-form-group label {
font-size: 12px;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--text-muted);
}

.tf-form-group input {
border: 1.5px solid #e5e7eb;
border-radius: 4px;
padding: 12px 14px;
font-family: 'Barlow', sans-serif;
font-size: 15px;
color: var(--text-primary);
outline: none;
transition: border-color 0.2s;
}

.tf-form-group input:focus { border-color: var(--primary); }

.tf-message {
font-size: 14px;
margin-bottom: 16px;
padding: 10px 14px;
border-radius: 4px;
display: none;
}

.tf-message.success {
display: block;
background: #d1fae5;
color: #065f46;
}

.tf-message.error {
display: block;
background: #fee2e2;
color: #991b1b;
}

@media (max-width: 520px) {
.tf-modal-content { padding: 32px 20px; margin: 0 15px;}

}
















/*    Reviews.  */


/* ===== ДОПОЛНЕНИЯ ДЛЯ БЛОКА REVIEWS ===== */

/* Обрезка текста и кнопка Read more */
.rev-text-wrapper {
    flex: 1;
}

.rev-text {
    font-size: 14px;
    line-height: 1.65;
    color: color-mix(in srgb, var(--white) 60%, transparent);
    margin: 0;
}

.rev-text.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rev-read-more {
    background: none;
    border: none;
    color: var(--secondary-light, #d4be7a);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    letter-spacing: 0.05em;
    transition: opacity 0.2s;
}

.rev-read-more:hover {
    opacity: 0.7;
}

/* Owl Carousel - точки навигации */
.review-cards .owl-stage-outer {
    padding: 4px 0;
}

.review-cards .owl-dots {
    margin-top: 28px;
    text-align: center;
    display: block !important;
}

.review-cards .owl-dot {
    display: inline-block;
    margin: 0 4px;
}

.review-cards .owl-dot span {
    display: block;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: color-mix(in srgb, var(--white) 30%, transparent) !important;
    transition: all 0.3s ease;
}

.review-cards .owl-dot.active span {
    background: var(--secondary, #AA9441) !important;
    transform: scale(1.2);
}

.review-cards .owl-dot:hover span {
}


