/* ===================================
   ACRIK.RU - Main Stylesheet
   Bitrix Site Manager v11.5.6
   =================================== */

/* --- Reset (minimal) --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Arial, 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #0260B8;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #FF6B00;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    color: #1a2744;
}

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p {
    margin-bottom: 1rem;
}

/* --- Layout Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Site Header --- */
.site-header {
    background: #FFFFFF;
    border-bottom: 1px solid #e0e0e0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    padding-bottom: 15px;
}

.site-header__logo {
    flex-shrink: 0;
}

.site-header__logo img {
    height: 104px;
    width: auto;
}

.site-header__contacts {
    text-align: left;
    font-size: 14px;
    color: #555;
}

.site-header__contacts-city {
    font-size: 18px;
    font-weight: 700;
    color: #1a2744;
    margin-bottom: 2px;
}

.site-header__contacts-phone {
    font-size: 17px;
    font-weight: 400;
    color: #1a2744;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-header__contacts-phone::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF6B00'%3E%3Cpath d='M6.62 10.79a15.053 15.053 0 006.59 6.59l2.2-2.2a1 1 0 011.01-.24c1.12.37 2.33.57 3.58.57a1 1 0 011 1V20a1 1 0 01-1 1A17 17 0 013 4a1 1 0 011-1h3.5a1 1 0 011 1c0 1.25.2 2.46.57 3.58a1 1 0 01-.24 1.01l-2.2 2.2z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.site-header__contacts-phone a {
    color: #1a2744;
}

.site-header__contacts-phone a:hover {
    color: #FF6B00;
}

.site-header__contacts-email {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-header__contacts-email::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF6B00'%3E%3Cpath d='M20 4H4a2 2 0 00-2 2v12a2 2 0 002 2h16a2 2 0 002-2V6a2 2 0 00-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.site-header__contacts-email a {
    font-size: 17px;
    color: #1a2744;
    font-weight: 400;
}

/* --- Main Content Area --- */
.site-content {
    flex: 1;
    padding: 0;
}

/* Home page: no padding above slider */
.page-home .site-content {
    padding-top: 0;
}

/* Inner pages: padding + layout with optional sidebar */
.page-inner .site-content {
    padding-top: 30px;
    padding-bottom: 40px;
}

.inner-layout {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.inner-layout__sidebar {
    flex: 0 0 250px;
}

.inner-layout__main {
    flex: 1;
    min-width: 0;
}

/* Breadcrumbs */
.breadcrumbs {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 20px;
    font-size: 13px;
    color: #888;
}

.breadcrumbs a {
    color: #0260B8;
}

.breadcrumbs a:hover {
    color: #FF6B00;
}

.breadcrumbs span {
    margin: 0 5px;
    color: #ccc;
}

/* Page title for inner pages */
.page-title {
    font-size: 1.75rem;
    color: #1a2744;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #FF6B00;
}

/* --- News item separator (inner pages) --- */
#news .one {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #FF6B00;
}

#news .one:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* --- Home Page: News Section --- */
.home-news {
    padding: 50px 0;
    background: #f5f5f5;
}

.home-news__title {
    text-align: center;
    font-size: 2rem;
    color: #1a2744;
    margin-bottom: 40px;
}

.home-news__grid {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.home-news__card {
    flex: 1;
    background: #efefef;
    border: 3px solid #000000;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.home-news__card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.home-news__card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.home-news__card-body {
    padding: 20px;
}

.home-news__card-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.home-news__card-title {
    font-size: 1.1rem;
    color: #1a2744;
    margin-bottom: 10px;
    font-weight: 600;
}

.home-news__card-title a {
    color: #1a2744;
}

.home-news__card-title a:hover {
    color: #FF6B00;
}

.home-news__card-text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.home-news__card-link {
    display: inline-block;
    font-size: 14px;
    color: #FF6B00;
    font-weight: 500;
}

.home-news__card-link:hover {
    color: #e05500;
}

/* --- Include Area Content --- */
.include-content {
    background: #FFFFFF;
    padding: 25px 30px;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
}

.include-content h1,
.include-content h2,
.include-content h3 {
    color: #1a2744;
}

.include-content ul,
.include-content ol {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1rem;
}

.include-content ol {
    list-style: decimal;
}

.include-content hr,
hr.content-divider {
    border: none;
    border-top: 2px solid #FF6B00;
    margin: 1.5rem 0;
}

/* --- Counter Icons (footer bottom-right) --- */
.site-counters {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-counters:empty {
    display: none;
}

/* --- Footer --- */
.site-footer {
    background: #1a2744;
    color: #FFFFFF;
    padding: 40px 0 20px;
    margin-top: auto;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.8);
}

.site-footer a:hover {
    color: #FF6B00;
}

.site-footer__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.site-footer__grid {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.site-footer__column {
    flex: 1;
    min-width: 150px;
}

.site-footer__column-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #FF6B00;
}

.site-footer__column ul li {
    margin-bottom: 6px;
}

.site-footer__column ul li a {
    font-size: 14px;
}

.site-footer__bottom {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.site-footer__copyright {
    flex: 1;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .inner-layout {
        flex-direction: column;
    }

    .inner-layout__sidebar {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .site-header__contacts {
        text-align: center;
    }

    .home-news__grid {
        flex-direction: column;
    }

    .site-footer__grid {
        flex-direction: column;
        gap: 25px;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }

    .page-title {
        font-size: 1.35rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .site-header__logo img {
        height: 45px;
    }

    .site-header__contacts-phone {
        font-size: 16px;
    }
}
