.calculator-block{
    position: relative;
    float: left;
    margin-bottom: 10px;
}

.calculator-block:not(.norightm){
    margin-right: 10px;
   
}

.refresh-button.smallheight-but{
    height: 25px;
    line-height: 27px;
    font-size: 13px;
}

.clearboth{
    clear: both;
}

.calculator-table{
    background: #fff;
    border-collapse: collapse; 
     
}

.calculator-table td{
    border: solid #ccc 1px;
    padding: 5px 5px;
    font-size: 13px;
    white-space: nowrap;
}
.calculator-table td.nobr{
    border: solid #ccc 0px;
}

.year-td{
    text-align: center;
    font-weight: bold;
    background: #900;
    color: #fff;
}

.calculator-table.year-table{
    margin-right: 20px;
    margin-bottom: 20px;
}

.refresh-button{
    font-family: "Geometria", Arial, sans-serif;
    font-size: 14px;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.7px;
    width: 148px;
    height: 40px;
    line-height: 42px;
    text-align: center;
    border-radius: 3px;
    background-color: #990000;
    display: block;
    outline: none;
    border: none;
    cursor: pointer;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

/* ============================================
   Hero Section - Clean Design with Light Gradient
   ============================================ */

/* Prevent horizontal scrollbar from 100vw elements */
body {
    overflow-x: hidden;
}

/* White gradient overlay on body - fades sky area of hero image */
body::after {
    content: '';
    position: absolute;
    top: 160px;
    left: 0;
    right: 0;
    height: 400px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.95) 15%,
        rgba(255, 255, 255, 0.7) 40%,
        rgba(255, 255, 255, 0.3) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 0;
    pointer-events: none;
}

/* Hero section spacing - ensure full image is visible */
/* Image bg.jpg: 1624x581px, aspect ratio 35.77%, positioned at top: 160px */
/* Formula: min-height = 160px (image top) + 35.77vw (image height) - 60px (header) */
.home-top {
    position: relative;
    padding-bottom: 60px !important;
    margin-top: 80px !important;
    margin-bottom: 0 !important;
    z-index: 1;
}

/* Ensure content is above gradient */
.home-top h1,
.home-top .subtitle,
.home-top .buttons {
    position: relative;
    z-index: 1;
}

/* H1 - dark text, LIGHTER weight, sentence case */
.home-top h1 {
    display: block !important;
    padding: 0 !important;
    background: none !important;
    color: #2c3e50 !important;
    text-transform: none !important;
    font-size: 44px !important;
    font-weight: 500 !important;
    margin-bottom: 0 !important;
    line-height: 1.2 !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
}

/* Subtitle - lighter gray, thinner weight */
.home-top .subtitle {
    display: block !important;
    padding: 0 !important;
    background: none !important;
    color: #5a6a7a !important;
    text-transform: none !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    margin-top: 15px !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
}

/* CTA button with proper spacing */
.home-top .buttons {
    margin-top: 35px !important;
    margin-bottom: 20px !important;
}

.home-top .buttons a {
    text-transform: none !important;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    padding: 16px 45px !important;
    font-size: 16px !important;
}

.home-top .buttons a.popap-btn {
    display: inline-block;
    background: #900;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.home-top .buttons a.popap-btn:hover {
    background: #700;
}

/* ============================================
   Trust Badges Section - Below Hero
   ============================================ */

.trust-badges-section {
    background: #fff;
    padding: 30px 0 50px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 2;
}

.trust-badges-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: #fff;
    z-index: -1;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 80px;
    background: none;
    margin: 0;
}

.trust-badges .badge {
    display: flex;
    align-items: center;
    gap: 15px;
    background: none;
    color: #333;
    padding: 0;
    text-align: left;
}

.trust-badges .badge-icon {
    width: 48px;
    height: 48px;
    color: #900;
    flex-shrink: 0;
}

.trust-badges .badge-icon svg {
    width: 100%;
    height: 100%;
}

.trust-badges .badge-content {
    display: flex;
    flex-direction: column;
}

.trust-badges .number {
    display: block;
    font-size: 1.5em;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

.trust-badges .label {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-top: 2px;
}

/* Directions Section - Key Directions */
.directions-section {
    padding: 60px 0;
    background: #f8f8f8;
}
.directions-section .section-title {
    text-align: center;
    font-size: 1.8em;
    color: #333;
    margin-bottom: 40px;
}
.directions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}
.direction-card {
    background: #fff;
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 40px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}
.direction-card:hover {
    border-color: #8B0000;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}
.direction-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}
.direction-icon svg {
    width: 100%;
    height: 100%;
}
.direction-card h3 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 15px;
}
.direction-desc {
    color: #666;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
}
.direction-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}
.direction-features li {
    color: #555;
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}
.direction-features li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    background: #8B0000;
    border-radius: 50%;
}
.direction-link {
    display: inline-block;
    color: #8B0000;
    font-weight: 600;
    font-size: 1em;
}
.direction-card:hover .direction-link {
    text-decoration: underline;
}

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

    /* Hero responsive - maintain dynamic height on mobile */
    .home-top {
        min-height: calc(100px + 35.77vw);
        padding-bottom: 30px !important;
        margin-top: 40px !important;
    }
    .home-top::before {
        top: -100px;
        height: 250px;
    }
    .home-top h1 {
        font-size: 28px !important;
        font-weight: 500 !important;
    }
    .home-top .subtitle {
        font-size: 16px !important;
    }
    .home-top .buttons {
        margin-top: 25px !important;
    }

    /* Trust badges responsive */
    .trust-badges {
        flex-direction: column;
        gap: 25px;
        align-items: center;
    }
    .trust-badges-section {
        padding: 30px 0;
    }
    .trust-badges .badge {
        width: 100%;
        max-width: 280px;
        justify-content: flex-start;
    }
}

/* ============================================
   Service Cards - Match original behavior
   ============================================ */

/* Service icon wrapper - consistent sizing */
.service-icon-wrap {
    height: 105px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.service-icon-wrap img {
    max-height: 65px;
    max-width: 65px;
    object-fit: contain;
}

/* Note: Old .bg rules removed - .bg is now hidden completely on home page */

/* ============================================
   Fix: Service card extra lines and hover overlap
   ============================================ */

/* Remove unwanted border from icon wrapper (matched by wildcard selector) */
.service-tile-home .service-icon-wrap,
.service-tiles .service-icon-wrap {
    border: none !important;
}

/* Fix hover overlap: ensure hovering card appears above others */
.service-tile-home .column,
.service-tiles .column {
    position: relative;
    margin-bottom: 20px;
}

.service-tile-home .column:hover,
.service-tiles .column:hover {
    z-index: 10;
}

/* ============================================
   Why Us Section - About Home
   ============================================ */

.about-home .block-title {
    text-align: center;
    font-size: 1.8em;
    color: #333;
    margin-bottom: 30px;
    font-weight: normal;
}

.why-us-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 30px;
    max-width: 500px;
}

.why-us-list li {
    color: #333;
    font-size: 1.1em;
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    border-bottom: 1px solid #eee;
}

.why-us-list li:last-child {
    border-bottom: none;
}

.why-us-list li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
}

.about-cta {
    text-align: center;
    margin-top: 20px;
}

.about-cta .button {
    display: inline-block;
    padding: 12px 30px;
    margin: 0 10px;
    background: #8B0000;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 1em;
    transition: background 0.3s ease;
}

.about-cta .button:hover {
    background: #660000;
}

/* Secondary button (outline style) */
.about-cta .button.button-secondary,
.about-cta .button:not(.popap-btn) {
    background: transparent;
    color: #666;
    border: 1px solid #ccc;
}

.about-cta .button.button-secondary:hover,
.about-cta .button:not(.popap-btn):hover {
    background: #f5f5f5;
    border-color: #999;
    color: #333;
}

/* Primary CTA button */
.about-cta .button.popap-btn {
    background: #8B0000;
    color: #fff;
    border: 1px solid #8B0000;
}

.about-cta .button.popap-btn:hover {
    background: #660000;
    border-color: #660000;
}

/* ============================================
   Fix: Service tiles small - reduce font to fit on one line
   ============================================ */
.service-tiles-small [class*='service-'] {
    font-size: 14px !important;
}

/* ============================================
   Services Hub - 5 cards grid for /uslugi/
   ============================================ */

/* Subtitle for directions section */
.directions-subtitle {
    text-align: center;
    color: #666;
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1em;
    line-height: 1.6;
}

/* 5-card grid layout */
.directions-grid-5 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
}

@media (max-width: 900px) {
    .directions-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .directions-grid-5 {
        grid-template-columns: 1fr;
    }
}

/* Direction icon with img */
.direction-icon img {
    width: 60px;
    height: 60px;
}

/* Services CTA section */
.services-cta {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    margin-top: 60px;
    border-radius: 12px;
}

.services-cta h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #333;
}

.services-cta p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.services-cta .btn {
    display: inline-block;
    padding: 15px 40px;
    background: #8B0000;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
}

.services-cta .btn:hover {
    background: #6B0000;
}

/* ============================================
   Service Cards - Home Page (UX Redesign)
   ============================================ */

/* Service cards section */
.service-tile-home {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
    margin-top: 0 !important;
    background: #fff !important;
    position: relative;
    z-index: 2;
}

.service-tile-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: #fff;
    z-index: -1;
}

/* Grid layout for equal height cards */
.service-tile-home .news-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
    margin: 0 auto !important;
    max-width: 1000px !important;
    padding: 0 20px !important;
    justify-content: center !important;
}

.service-tile-home .news-list > .column {
    flex: 0 0 calc(33.333% - 24px) !important;
    max-width: calc(33.333% - 24px) !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
}

/* Remove thick borders, add very soft shadows */
.service-tile-home [class*='service'] {
    border: none !important;
    box-shadow: 0 1px 8px rgba(0,0,0,0.04), 0 4px 20px rgba(0,0,0,0.03);
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    background: #fff;
}

.service-tile-home [class*='service']:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08), 0 8px 32px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

/* Default state: white background, dark text */
.service-tile-home .bg {
    background: #fff !important;
    border: none !important;
    margin: 0 !important;
    padding: 15px 20px !important;
    border-radius: 0 0 12px 12px !important;
    transition: background 0.3s ease !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.service-tile-home .text {
    color: #555 !important;
    margin: 0 !important;
    height: auto !important;
    transition: color 0.3s ease !important;
    text-align: left !important;
    line-height: 1.5 !important;
}

/* Hover state: red background, white text */
.service-tile-home [class*='service']:hover .bg {
    background: #900 !important;
}

.service-tile-home [class*='service']:hover .text {
    color: #fff !important;
}

.service-tile-home .more {
    display: block !important;
    margin-top: 15px;
    padding-top: 15px;
    text-align: center !important;
}

.service-tile-home .more a {
    color: #900 !important;
    text-decoration: none !important;
    text-transform: none !important;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.service-tile-home [class*='service']:hover .more a {
    color: #fff !important;
}

/* Remove separate hover effect on link - only box hover matters */
.service-tile-home .more a:hover,
.service-tiles .more a:hover {
    background-color: transparent !important;
    color: inherit !important;
}

/* Remove shadow/border from icon wrapper */
.service-tile-home .service-icon-wrap {
    border: none !important;
    box-shadow: none !important;
    background: none !important;
}

/* Sentence case headings */
.service-tile-home .name {
    text-transform: none !important;
    font-size: 18px;
    font-weight: 600;
    padding: 10px 20px 15px;
    background: #fff;
}

/* ============================================
   Header - Desktop & Mobile Responsive Design
   ============================================ */

/* Reduce header height for European feel */
header {
    padding-bottom: 25px !important;
}

/* Header inner container */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Mobile phone in header - hidden on desktop */
.mobile-phone {
    display: none !important;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
}

/* Hamburger menu - hidden on desktop */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Desktop navigation - visible on desktop */
.desktop-nav {
    display: block;
    flex: 1;
}

/* Hide navigation icons to match mockup (plain text nav) */
.desktop-nav .h-links li a::before,
header .h-links li a::before {
    display: none !important;
}

/* Mobile menu overlay - hidden by default */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: #fff;
    padding: 80px 20px 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-nav a {
    display: block;
    padding: 15px 0;
    font-size: 18px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.mobile-nav a:hover {
    color: #900;
}

.mobile-menu-contact {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.mobile-menu-phone {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    margin-bottom: 10px;
}

.mobile-menu-contact p {
    color: #666;
    font-size: 14px;
}

/* Cabinet button styling */
.cabinet-btn {
    text-transform: uppercase !important;
    font-size: 11px !important;
    letter-spacing: 0.5px;
}

/* Body lock when menu is open */
body.menu-open {
    overflow: hidden;
}

/* ============================================
   Trust Badges - Updated Design with Separators
   ============================================ */

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 0;
    background: none;
    margin: 0;
}

.trust-badges .badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    color: #333;
    padding: 0 40px;
    text-align: left;
    border-right: 1px solid #ddd;
}

.trust-badges .badge:last-child {
    border-right: none;
}

.trust-badges .badge:first-child {
    padding-left: 0;
}

.trust-badges .badge:last-child {
    padding-right: 0;
}

.trust-badges .badge-icon {
    width: 32px;
    height: 32px;
    color: #888;
    flex-shrink: 0;
}

.trust-badges .badge-icon svg {
    width: 100%;
    height: 100%;
}

.trust-badges .badge-content {
    display: flex;
    flex-direction: column;
}

.trust-badges .number {
    display: block;
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

.trust-badges .label {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-top: 2px;
}

/* ============================================
   Mobile Responsive Styles (max-width: 768px)
   ============================================ */

@media screen and (max-width: 768px) {
    /* Header mobile layout */
    header {
        padding: 15px 0 !important;
    }

    header .row.column,
    header > .row.column {
        padding: 0 15px !important;
    }

    .header-inner {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
    }

    /* Logo sizing for mobile */
    header .logo {
        float: none !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }

    header .logo img {
        height: 35px !important;
        width: auto !important;
    }

    /* Show mobile phone */
    .mobile-phone {
        display: block !important;
        flex: 1 !important;
        text-align: center !important;
        margin: 0 10px !important;
        font-size: 14px !important;
    }

    /* Show hamburger menu */
    .hamburger-menu {
        display: flex !important;
        flex-shrink: 0 !important;
    }

    /* Hide ALL desktop elements on mobile - comprehensive targeting */
    .desktop-nav,
    header .desktop-nav,
    header nav.desktop-nav,
    nav.desktop-nav,
    .h-links,
    ul.h-links,
    header .h-links,
    header ul.h-links,
    .bx_site,
    div.bx_site,
    header .bx_site,
    [class^="bx_"],
    [class*=" bx_"],
    header .contacts,
    header > .row .contacts,
    header .buttons,
    header > .row .buttons,
    .header-inner .contacts,
    .header-inner .buttons {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }

    /* Show mobile menu overlay */
    .mobile-menu-overlay {
        display: block !important;
        pointer-events: none;
    }

    .mobile-menu-overlay.active {
        pointer-events: auto;
    }

    /* Trust badges mobile - horizontal compact row */
    .trust-badges-section {
        padding: 20px 10px !important;
    }

    .trust-badges {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        gap: 0 !important;
    }

    .trust-badges .badge {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 0 8px !important;
        gap: 5px !important;
        flex: 1 !important;
        border-right: 1px solid #ddd !important;
    }

    .trust-badges .badge:last-child {
        border-right: none !important;
    }

    .trust-badges .badge-icon {
        width: 24px !important;
        height: 24px !important;
    }

    .trust-badges .badge-content {
        align-items: center !important;
    }

    .trust-badges .number {
        font-size: 0.95em !important;
    }

    .trust-badges .label {
        font-size: 0.65em !important;
    }

    /* Hero section mobile */
    .home-top {
        min-height: auto !important;
        padding: 20px 15px 30px !important;
        margin-top: 0 !important;
    }

    .home-top h1 {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }

    .home-top .subtitle {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    .home-top .buttons {
        margin-top: 20px !important;
    }

    .home-top .buttons a {
        width: 100% !important;
        max-width: 280px !important;
        display: block !important;
        margin: 0 auto !important;
        padding: 14px 30px !important;
        font-size: 14px !important;
    }

    /* Service cards mobile - full width stacked */
    .service-tile-home {
        padding: 30px 0 !important;
    }

    .service-tile-home .news-list {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 0 15px !important;
    }

    .service-tile-home .news-list > .column,
    .service-tile-home .news-list > .column.medium-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Mobile service card layout - full width with content */
    .service-tile-home [class*='service'] {
        flex-direction: column !important;
        padding: 20px !important;
        border-radius: 8px !important;
    }

    .service-tile-home .service-icon-wrap {
        height: 80px !important;
        width: 100% !important;
        padding: 0 !important;
        margin-bottom: 10px !important;
    }

    .service-tile-home .service-icon-wrap img {
        max-width: 50px !important;
        max-height: 50px !important;
    }

    .service-tile-home .name {
        padding: 0 0 10px 0 !important;
        font-size: 16px !important;
        text-align: center !important;
    }

    .service-tile-home .bg {
        padding: 0 !important;
        flex: 1 !important;
        border-radius: 0 !important;
        text-align: center !important;
    }

    .service-tile-home .text {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    .service-tile-home .more {
        text-align: center !important;
    }
}

/* ============================================
   Service Cards - 3 cards layout with emphasis
   ============================================ */

/* Hide cards 4 and 5 (Кредитование, Family Office) */
.service-tile-home .news-list > .column:nth-child(4),
.service-tile-home .news-list > .column:nth-child(5) {
    display: none !important;
}

/* Card 2 (Управление) - visually stronger as main product */
.service-tile-home .news-list > .column:nth-child(2) [class*='service'] {
    box-shadow: none !important;
    background: #f8f9fa !important;
    border: 1px solid #e8e8e8 !important;
    transform: scale(1.02);
}

.service-tile-home .news-list > .column:nth-child(2) [class*='service']:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    transform: scale(1.02) translateY(-2px);
}

.service-tile-home .news-list > .column:nth-child(2) .service-icon-wrap {
    height: 115px !important;
}

.service-tile-home .news-list > .column:nth-child(2) .service-icon-wrap img {
    max-height: 70px !important;
    max-width: 70px !important;
}

/* ============================================
   Main Product Block - Управление недвижимостью
   ============================================ */

.main-product-block {
    background: #fff;
    padding: 60px 0;
    position: relative;
    z-index: 2;
}

.main-product-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: #fff;
    border-top: 1px solid #eee;
    z-index: -1;
}

.main-product-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.main-product-content h3 {
    font-size: 24px;
    font-weight: 500;
    color: #333;
    margin: 0 0 30px 0;
}

.main-product-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.main-product-features .feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    font-size: 15px;
}

.main-product-features .feature::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #900;
    border-radius: 50%;
    flex-shrink: 0;
}

.main-product-result {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    padding-top: 20px;
    border-top: 1px solid #eee;
    max-width: 500px;
    margin: 0 auto;
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
    .main-product-block {
        padding: 40px 20px;
    }

    .main-product-content h3 {
        font-size: 20px;
    }

    .main-product-features {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .main-product-result {
        font-size: 14px;
    }
}

/* ============================================
   Main Services Section Title
   ============================================ */

.main-services-section {
    background: #fff;
    padding: 50px 0 20px 0;
    position: relative;
    z-index: 2;
}

.main-services-section .section-title {
    text-align: center;
    font-size: 24px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

/* ============================================
   Support Services Section - Compact Cards
   ============================================ */

.support-services-section {
    background: #f9f9f9;
    padding: 50px 0;
    position: relative;
    z-index: 2;
}

.support-services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: #f9f9f9;
    z-index: -1;
}

.support-title {
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    color: #555;
    margin: 0 0 30px 0;
}

.support-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.support-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 25px;
    flex: 1;
    max-width: 350px;
    text-decoration: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.support-card:hover {
    border-color: #ccc;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.support-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: #888;
}

.support-icon svg {
    width: 100%;
    height: 100%;
}

.support-content {
    flex: 1;
}

.support-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.support-content p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.support-link {
    font-size: 13px;
    color: #900;
    font-weight: 500;
}

.support-card:hover .support-link {
    text-decoration: underline;
}

/* Support Service Tile - Bitrix component wrapper */
.support-service-tile {
    background: #f9f9f9;
    padding: 0 0 50px 0;
    position: relative;
    z-index: 2;
}

.support-service-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: #f9f9f9;
    z-index: -1;
}

.support-service-tile .news-list {
    display: flex;
    justify-content: center;
    gap: 30px;
}

/* Hide cards 1, 2, 3 - show only 4 and 5 */
.support-service-tile .news-list > .column:nth-child(1),
.support-service-tile .news-list > .column:nth-child(2),
.support-service-tile .news-list > .column:nth-child(3) {
    display: none !important;
}

/* Cards 4 and 5 visible - same design as top cards */
.support-service-tile .news-list > .column:nth-child(4),
.support-service-tile .news-list > .column:nth-child(5) {
    display: block !important;
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
    .main-services-section {
        padding: 30px 20px 10px 20px;
    }

    .main-services-section .section-title {
        font-size: 20px;
    }

    .support-services-section {
        padding: 40px 20px;
    }

    .support-title {
        font-size: 18px;
    }

    .support-cards {
        flex-direction: column;
        gap: 15px;
    }

    .support-card {
        max-width: 100%;
        padding: 20px;
    }

    .support-icon {
        width: 32px;
        height: 32px;
    }

    .support-content h4 {
        font-size: 15px;
    }

    .support-content p {
        font-size: 12px;
    }

    /* Support Service Tile - Mobile */
    .support-service-tile {
        padding: 0 20px 40px 20px;
    }

    .support-service-tile .news-list {
        flex-direction: column;
    }
}

/* ============================================
   Campus Group Section - Partner Logos
   ============================================ */

.campus-group-section {
    background: #f9f9f9;
    padding: 60px 0;
    text-align: center;
}

.campus-group-section .group-title {
    font-size: 22px;
    font-weight: 500;
    color: #333;
    margin-bottom: 15px;
    text-transform: none;
}

.campus-group-section .group-description {
    font-size: 15px;
    color: #666;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.partner-logo {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.partner-logo:hover {
    opacity: 0.8;
}

.partner-logo img {
    height: 40px;
    width: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

/* Invert white logos to make them visible on light background */
.partner-logo-invert img {
    filter: grayscale(100%) invert(1);
}

/* ============================================
   New Footer Design - 4 Blocks
   ============================================ */

.site-footer {
    background: #f5f5f5;
    padding: 60px 0 30px;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-block h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-block ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-block ul li {
    margin-bottom: 10px;
}

.footer-block ul li a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-block ul li a:hover {
    color: #333;
    text-decoration: underline;
}

/* Footer Contacts */
.footer-contacts p {
    color: #555;
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-phone {
    font-weight: 500;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #ddd;
    padding-top: 20px;
    text-align: center;
}

.footer-copy {
    color: #888;
    font-size: 13px;
}

/* Footer Mobile */
@media screen and (max-width: 768px) {
    .campus-group-section {
        padding: 40px 20px;
    }

    .campus-group-section .group-title {
        font-size: 18px;
    }

    .campus-group-section .group-description {
        font-size: 14px;
    }

    .partner-logos {
        gap: 30px;
    }

    .partner-logo img {
        height: 30px;
    }

    .site-footer {
        padding: 40px 20px 20px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-block h4 {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .footer-block ul li a {
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .partner-logos {
        flex-direction: column;
        gap: 20px;
    }
}
