/**
 * Modern Responsive & UI Stylesheet for gammasert.ru (Attitude theme)
 * Fully preserves original layout & colors (#0078a2, #05a9c5, #ffc600)
 */

/* ==========================================================================
   RESET & MOBILE BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   HEADER & TOP CONTACTS
   ========================================================================== */
.top_contact_block {
    background-color: #0078a2 !important;
    padding: 10px 15px !important;
}

.top_contact_block .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top_contact_row {
    float: none !important;
}

.top_contact_row .adr {
    width: auto !important;
    margin: 0 !important;
}

.top_contact_row .adr td {
    padding: 2px 12px 2px 0 !important;
    font-size: 15px !important;
}

.top_contact_row .adr .locality {
    padding-left: 20px !important;
}

.top_contact_row .adr .tel {
    padding-left: 24px !important;
    font-weight: 700 !important;
}

.top_contact_row .adr .tel a {
    color: #fff !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

.top_contact_row .adr .tel a:hover {
    opacity: 0.85;
}

.top_contact_row .adr .amail {
    padding-left: 24px !important;
}

.top_contact_row .adr .amail a {
    color: #fff !important;
    text-decoration: none !important;
}

.head_part {
    height: auto !important;
    min-height: 105px !important;
    padding: 15px 0 !important;
}

.head_part .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.hgroup-wrap {
    float: left !important;
    display: flex !important;
    align-items: center !important;
}

#site-logo {
    float: none !important;
}

#site-title a img {
    max-width: 250px !important;
    height: auto !important;
    display: block !important;
}

.hgroup-right {
    display: none !important; /* Header search was broken legacy widget */
}


/* ==========================================================================
   NAVIGATION MENU (DESKTOP & MOBILE)
   ========================================================================== */
.top_menu {
    float: right !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#access {
    height: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    position: static !important;
    display: block !important;
}

#access ul {
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
    flex-wrap: wrap !important; /* Allow wrapping if needed */
}

#access li {
    padding: 0 !important;
    display: inline-block !important;
    white-space: nowrap !important;
}

#access a {
    display: inline-flex !important;
    align-items: center !important;
    padding: 6px 9px !important;
    height: auto !important;
    min-height: 36px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    line-height: 1 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
}

#access a:hover {
    background-color: rgba(0, 163, 198, 0.15) !important;
    color: #0078a2 !important;
}

/* Specific button styles from theme */
#access ul li.current-menu-item a,
#access ul li.current_page_item a {
    background-color: #00a3c6 !important;
    color: #ffffff !important;
}

#access ul li.menu-item-663 a {
    background-color: #ffc600 !important;
    color: #000000 !important;
    font-weight: 700 !important;
}

#access ul li.menu-item-663 a:hover {
    background-color: #e6b300 !important;
}

#access ul li.menu-item-661 a {
    background-color: #ffc600 !important;
    color: #000000 !important;
    font-weight: 700 !important;
}

#access ul li.menu-item-661 a:hover {
    background-color: #e6b300 !important;
}

/* Mobile Toggle Hamburger Button */
.gs-mobile-toggle {
    display: none;
    background: #0078a2;
    border: none;
    border-radius: 4px;
    width: 44px;
    height: 40px;
    padding: 8px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

.gs-mobile-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.25s ease;
}

.gs-mobile-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.gs-mobile-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.gs-mobile-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   MAIN CONTENT & SIDEBAR
   ========================================================================== */
#main {
    padding: 35px 30px 50px 30px !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

#primary {
    float: left !important;
    width: 71% !important;
    margin: 0 !important;
}

#secondary {
    float: right !important;
    width: 26% !important;
    margin: 0 !important;
}

#content h1.entry-title {
    font-size: 26px !important;
    line-height: 1.35 !important;
    color: #1a202c !important;
    border-left: 4px solid #0078a2 !important;
    padding-left: 18px !important;
    margin-bottom: 20px !important;
    text-transform: none !important;
}

.entry-content {
    font-size: 15px !important;
    line-height: 1.65 !important;
    color: #2d3748 !important;
}

.entry-content p {
    font-size: 15px !important;
    line-height: 1.65 !important;
    margin-bottom: 16px !important;
    text-align: left !important;
}

.entry-content h2,
.entry-content h3 {
    color: #0078a2 !important;
    font-weight: 700 !important;
    margin: 24px 0 12px 0 !important;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 20px 24px !important;
    font-size: 15px !important;
}

.entry-content li {
    margin-bottom: 6px !important;
}

.entry-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 20px 0 !important;
    font-size: 14.5px !important;
}

.entry-content table th {
    background: #f1f5f9 !important;
    color: #0078a2 !important;
    padding: 10px 14px !important;
    border: 1px solid #cbd5e1 !important;
    font-weight: 700 !important;
    text-align: left !important;
}

.entry-content table td {
    padding: 10px 14px !important;
    border: 1px solid #e2e8f0 !important;
    line-height: 1.5 !important;
}

.entry-content table tr:nth-child(even) {
    background: #f8fafc !important;
}

/* Sidebar Accordion & CTA Styling */
#secondary .widget_nav_menu {
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.zakaz_href {
    border-radius: 6px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.zakaz_href:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

/* ==========================================================================
   FOOTER ENHANCEMENTS
   ========================================================================== */
#colophon {
    padding: 30px 0 15px 0 !important;
}

#site-generator {
    padding: 16px 15px !important;
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
}

#site-generator .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

#site-generator .copyright {
    float: none !important;
    width: auto !important;
    padding: 0 !important;
    font-size: 13px !important;
    color: #64748b !important;
}

#site-generator .footer-links {
    margin: 0 !important;
    font-size: 13px !important;
}

#site-generator .footer-links a {
    color: #0078a2 !important;
    text-decoration: none !important;
    margin: 0 6px !important;
    font-weight: 500 !important;
}

#site-generator .footer-links a:hover {
    text-decoration: underline !important;
}

/* ==========================================================================
   HTML SITEMAP STYLES
   ========================================================================== */
.gs-sitemap-wrap {
    margin-top: 10px;
}

.gs-sitemap-intro {
    font-size: 15px;
    color: #4a5568;
    margin-bottom: 20px !important;
}

.gs-sitemap-filter-box {
    position: relative;
    margin-bottom: 24px;
}

.gs-sitemap-filter-box input {
    width: 100% !important;
    padding: 11px 40px 11px 14px !important;
    border: 1px solid #cbd5e0 !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    background: #fff !important;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.gs-sitemap-filter-box input:focus {
    border-color: #0078a2 !important;
    box-shadow: 0 0 0 3px rgba(0, 120, 162, 0.15) !important;
}

.gs-search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #a0aec0;
}

.gs-sitemap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.gs-sitemap-col {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 18px 20px;
}

.gs-sitemap-col h3 {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #0078a2 !important;
    margin: 0 0 14px 0 !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid #e2e8f0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gs-sitemap-col-wide {
    grid-column: 1 / -1;
}

.gs-sitemap-scroll-box {
    max-height: 480px;
    overflow-y: auto;
    padding-right: 10px;
}

.gs-sitemap-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.gs-sitemap-list li {
    padding: 6px 0 !important;
    border-bottom: 1px solid #edf2f7 !important;
    font-size: 14px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.gs-sitemap-list li a {
    color: #2d3748 !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.gs-sitemap-list li a:hover {
    color: #0078a2 !important;
}

.gs-item-cat {
    font-size: 11.5px;
    color: #718096;
    background: #edf2f7;
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 960px) {
    #primary {
        float: none !important;
        width: 100% !important;
    }

    #secondary {
        float: none !important;
        width: 100% !important;
        margin-top: 30px !important;
    }

    .zakaz_href {
        max-width: 247px;
        margin: 0 auto 20px auto !important;
    }

    .gs-sitemap-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 840px) {
    .head_part {
        min-height: auto !important;
        padding: 12px 0 !important;
    }

    .head_part .container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0 !important;
        position: relative !important;
    }

    .hgroup-wrap {
        float: none !important;
        flex: 0 1 auto !important;
    }

    #site-title a img {
        max-width: 200px !important;
    }

    .top_menu {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
    }

    .gs-mobile-toggle {
        display: flex !important;
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
    }

    #access {
        display: none !important;
        width: 100% !important;
        background: #ffffff !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 6px !important;
        padding: 12px !important;
        margin-top: 55px !important;
        position: relative !important;
        z-index: 999 !important;
    }

    #access.is-open {
        display: block !important;
    }

    #access ul {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
    }

    #access li {
        display: block !important;
        width: 100% !important;
    }

    #access a {
        display: block !important;
        text-align: left !important;
        padding: 10px 14px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 600px) {
    .top_contact_block .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .top_contact_row .adr td {
        display: block;
        margin-bottom: 4px;
        padding: 0 !important;
    }

    #content h1.entry-title {
        font-size: 21px !important;
    }

    #site-generator .container {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   HOMEPAGE MODERN STYLES (gammasert.ru)
   ========================================================================== */

/* Remove default main container padding on homepage for full-bleed feel */
.home #main {
    padding: 0 0 50px 0 !important;
}

/* Base Buttons */
.gs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
}

.gs-btn--primary {
    background: #0078a2 !important;
    color: #ffffff !important;
    border: 2px solid #0078a2;
}

.gs-btn--primary:hover {
    background: #005f80 !important;
    border-color: #005f80 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 120, 162, 0.35);
}

.gs-btn--yellow {
    background: #ffc600 !important;
    color: #1a1a1a !important;
    border: 2px solid #ffc600;
}

.gs-btn--yellow:hover {
    background: #e6b200 !important;
    border-color: #e6b200 !important;
    color: #1a1a1a !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 198, 0, 0.4);
}

.gs-btn--outline {
    background: transparent !important;
    color: #0078a2 !important;
    border: 2px solid #0078a2;
}

.gs-btn--outline:hover {
    background: #0078a2 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.gs-btn--white {
    background: #ffffff !important;
    color: #0078a2 !important;
    border: 2px solid #ffffff;
}

.gs-btn--white:hover {
    background: #f0f4f8 !important;
    color: #005f80 !important;
    transform: translateY(-2px);
}

.gs-btn--large {
    padding: 15px 34px;
    font-size: 16px;
}

/* Section Headings */
.gs-section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 40px auto;
}

.gs-section-label {
    display: inline-block;
    background: rgba(0, 120, 162, 0.08);
    color: #0078a2;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.gs-section-label--light {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.gs-section-title {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    line-height: 1.25 !important;
    margin: 0 0 12px 0 !important;
    font-family: 'Philosopher', 'Calibri', sans-serif !important;
}

.gs-section-title--light {
    color: #ffffff !important;
}

.gs-section-desc {
    font-size: 16px !important;
    color: #64748b !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

/* 1. HERO SECTION */
.gs-hero {
    background: linear-gradient(135deg, #f0f7fa 0%, #e2eff5 100%);
    padding: 55px 0 65px 0;
    border-bottom: 1px solid #d9e6ed;
    position: relative;
    overflow: hidden;
}

.gs-hero::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(0, 163, 198, 0.12) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.gs-hero__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.gs-hero__content {
    flex: 1 1 58%;
    max-width: 620px;
}

.gs-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #cde1eb;
    color: #0078a2;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    margin-bottom: 18px;
}

.gs-hero__title {
    font-size: 42px !important;
    line-height: 1.15 !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    margin: 0 0 16px 0 !important;
    font-family: 'Philosopher', 'Calibri', sans-serif !important;
}

.gs-hero__accent {
    color: #0078a2;
    position: relative;
}

.gs-hero__sub {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #475569 !important;
    margin-bottom: 26px !important;
    text-align: left !important;
}

.gs-hero__btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.gs-hero__trust {
    display: flex;
    gap: 28px;
    padding-top: 20px;
    border-top: 1px solid #cce0eb;
}

.gs-hero__trust-item strong {
    display: block;
    font-size: 26px;
    color: #0078a2;
    line-height: 1;
    font-family: 'Philosopher', sans-serif;
}

.gs-hero__trust-item span {
    font-size: 12.5px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.gs-hero__visual {
    flex: 1 1 38%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 380px;
}

.gs-hero__card {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 25px rgba(0, 120, 162, 0.08), 0 2px 6px rgba(0,0,0,0.03);
    border: 1px solid #e2edf2;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gs-hero__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 120, 162, 0.14);
}

.gs-hero__card--main {
    border-left: 5px solid #0078a2;
}

.gs-hero__card-icon {
    font-size: 26px;
    width: 44px;
    height: 44px;
    background: #f0f8fb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gs-hero__card-text {
    flex-grow: 1;
}

.gs-hero__card-text strong {
    display: block;
    font-size: 15px;
    color: #1e293b;
    line-height: 1.3;
}

.gs-hero__card-text span {
    font-size: 13px;
    color: #64748b;
}

.gs-hero__card-badge {
    width: 26px;
    height: 26px;
    background: #10b981;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

/* 2. SERVICES SECTION */
.gs-services {
    padding: 70px 0;
    background: #ffffff;
}

.gs-services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 35px;
}

.gs-service-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 28px 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.gs-service-card:hover {
    border-color: #0078a2;
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 120, 162, 0.12);
}

.gs-service-card__tag {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #ffc600;
    color: #1a1a1a;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
}

.gs-service-card__icon {
    font-size: 32px;
    margin-bottom: 14px;
}

.gs-service-card__title {
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.3 !important;
    font-family: 'Calibri', sans-serif !important;
}

.gs-service-card:hover .gs-service-card__title {
    color: #0078a2 !important;
}

.gs-service-card__desc {
    font-size: 14px !important;
    color: #64748b !important;
    line-height: 1.55 !important;
    margin: 0 0 18px 0 !important;
    flex-grow: 1;
    text-align: left !important;
}

.gs-service-card__link {
    font-size: 14px;
    font-weight: 700;
    color: #0078a2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}

.gs-service-card:hover .gs-service-card__link {
    gap: 8px;
    color: #005f80;
}

.gs-services__cta {
    text-align: center;
}

/* 3. STEPS SECTION */
.gs-steps {
    padding: 70px 0;
    background: linear-gradient(135deg, #0078a2 0%, #005878 100%);
    color: #ffffff;
}

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

.gs-step {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 26px 20px;
    backdrop-filter: blur(4px);
    transition: background 0.25s;
}

.gs-step:hover {
    background: rgba(255, 255, 255, 0.14);
}

.gs-step__num {
    font-size: 38px;
    font-weight: 800;
    color: #ffc600;
    line-height: 1;
    margin-bottom: 14px;
    font-family: 'Philosopher', sans-serif;
}

.gs-step__title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 8px 0 !important;
}

.gs-step__desc {
    font-size: 13.5px !important;
    color: #e2e8f0 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    text-align: left !important;
}

.gs-steps__cta {
    text-align: center;
}

/* 4. WHY SECTION */
.gs-why {
    padding: 70px 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.gs-why__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gs-why__item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.gs-why__icon {
    font-size: 30px;
    margin-bottom: 12px;
}

.gs-why__item h3 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 8px 0 !important;
}

.gs-why__item p {
    font-size: 14px !important;
    color: #64748b !important;
    line-height: 1.55 !important;
    margin: 0 !important;
    text-align: left !important;
}

/* 5. ARTICLES SECTION */
.gs-articles {
    padding: 70px 0;
    background: #ffffff;
}

.gs-articles__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 35px;
}

.gs-article-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}

.gs-article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}

.gs-article-card__meta {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 8px;
    font-weight: 600;
}

.gs-article-card__title {
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin: 0 0 10px 0 !important;
}

.gs-article-card__title a {
    color: #0f172a !important;
    text-decoration: none !important;
}

.gs-article-card__title a:hover {
    color: #0078a2 !important;
}

.gs-article-card__excerpt {
    font-size: 13.5px !important;
    color: #64748b !important;
    line-height: 1.55 !important;
    margin: 0 0 14px 0 !important;
    flex-grow: 1;
    text-align: left !important;
}

.gs-article-card__link {
    font-size: 13.5px;
    font-weight: 700;
    color: #0078a2;
    text-decoration: none !important;
}

.gs-articles__cta {
    text-align: center;
}

/* 6. CTA BANNER */
.gs-cta-banner {
    padding: 20px 0 50px 0;
}

.gs-cta-banner__inner {
    background: linear-gradient(135deg, #0078a2 0%, #05a9c5 100%);
    border-radius: 14px;
    padding: 40px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: 0 12px 30px rgba(0, 120, 162, 0.25);
}

.gs-cta-banner__text h2 {
    font-size: 28px !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    margin: 0 0 6px 0 !important;
    font-family: 'Philosopher', 'Calibri', sans-serif !important;
}

.gs-cta-banner__text p {
    font-size: 16px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 !important;
    text-align: left !important;
}

.gs-cta-banner__actions {
    display: flex;
    gap: 14px;
    flex-shrink: 0;
}

/* Responsive queries for Homepage */
@media (max-width: 990px) {
    .gs-hero__inner {
        flex-direction: column;
        text-align: center;
    }

    .gs-hero__content {
        max-width: 100%;
    }

    .gs-hero__sub {
        text-align: center !important;
    }

    .gs-hero__btns {
        justify-content: center;
    }

    .gs-hero__trust {
        justify-content: center;
    }

    .gs-hero__visual {
        max-width: 480px;
        width: 100%;
    }

    .gs-services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gs-steps__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gs-why__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gs-cta-banner__inner {
        flex-direction: column;
        text-align: center;
        padding: 35px 25px;
    }

    .gs-cta-banner__text p {
        text-align: center !important;
    }
}

@media (max-width: 640px) {
    .gs-hero__title {
        font-size: 30px !important;
    }

    .gs-services__grid,
    .gs-steps__grid,
    .gs-why__grid,
    .gs-articles__grid {
        grid-template-columns: 1fr;
    }

    .gs-cta-banner__actions {
        flex-direction: column;
        width: 100%;
    }

    .gs-cta-banner__actions .gs-btn {
        width: 100%;
    }
}

/* 4.1. SEO CONTENT ON HOMEPAGE */
.gs-seo-content {
    padding: 60px 0;
    background: #ffffff;
}

.gs-seo-content__box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 35px 40px;
}

.gs-seo-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 16px 0 !important;
    line-height: 1.3 !important;
    font-family: 'Philosopher', 'Calibri', sans-serif !important;
}

.gs-seo-text p {
    font-size: 15px !important;
    line-height: 1.65 !important;
    color: #475569 !important;
    margin-bottom: 24px !important;
    text-align: left !important;
}

.gs-seo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.gs-seo-col h4 {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #0078a2 !important;
    margin: 0 0 12px 0 !important;
}

.gs-seo-col p {
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    color: #475569 !important;
    margin: 0 !important;
    text-align: left !important;
}

.gs-seo-col ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.gs-seo-col li {
    position: relative;
    padding-left: 20px !important;
    font-size: 14.5px !important;
    line-height: 1.55 !important;
    color: #334155 !important;
    margin-bottom: 8px !important;
}

.gs-seo-col li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #10b981;
    font-weight: bold;
}

@media (max-width: 800px) {
    .gs-seo-content__box {
        padding: 24px 20px;
    }
    .gs-seo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ==========================================================================
   LAYOUT WIDTH & PROPORTIONS EXPANSION (gammasert.ru v2.1)
   ========================================================================== */

/* 1. Make the main page wrapper wider and give it modern shadow & padding */
body {
    background-color: #f1f5f9 !important;
}

.wrapper {
    max-width: 1260px !important;
    width: 95% !important;
    margin: 15px auto 40px auto !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #ffffff !important;
}

/* 2. Fix top contact bar proportions */
.top_contact_block {
    padding: 12px 30px !important;
}

.top_contact_block .container {
    max-width: 1200px !important;
}

/* 3. Fix header & menu bar spacing and single-line layout */
.head_part {
    padding: 20px 30px !important;
    min-height: 95px !important;
}

.head_part .container {
    max-width: 1200px !important;
}

.top_menu {
    flex-grow: 1 !important;
    justify-content: flex-end !important;
}

/* 4. Fix Hero Section paddings and card layout */
.gs-hero {
    padding: 50px 35px 60px 35px !important;
}

.gs-hero__inner {
    max-width: 1180px !important;
    margin: 0 auto !important;
    gap: 50px !important;
}

.gs-hero__content {
    flex: 1 1 58% !important;
    max-width: 650px !important;
}

.gs-hero__title {
    font-size: 38px !important;
    line-height: 1.2 !important;
    margin-bottom: 20px !important;
}

.gs-hero__visual {
    flex: 1 1 38% !important;
    max-width: 420px !important;
    gap: 18px !important;
}

.gs-hero__card {
    padding: 18px 22px !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 10px 25px rgba(0, 120, 162, 0.09) !important;
}

.gs-hero__card-text strong {
    font-size: 15.5px !important;
}

.gs-hero__card-text span {
    font-size: 13.5px !important;
}

/* 5. Sections internal containers */
.gs-services,
.gs-steps,
.gs-why,
.gs-seo-content,
.gs-articles,
.gs-cta-banner {
    padding-left: 30px !important;
    padding-right: 30px !important;
}

.gs-services .container,
.gs-steps .container,
.gs-why .container,
.gs-seo-content .container,
.gs-articles .container,
.gs-cta-banner .container {
    max-width: 1180px !important;
    margin: 0 auto !important;
}

/* 6. Footer container */
#colophon {
    padding: 0 30px 20px 30px !important;
}

#colophon .container {
    max-width: 1180px !important;
}
