/* Services pages */

/* Main page container */
.page-template-page-services .almaz-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
}

/* Headings and typography */
.page-template-page-services .almaz-page h1 {
    font-size: 28px;
    font-weight: 700;
    color: #775441;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.page-template-page-services .almaz-page h2 {
    font-size: 24px;
    font-weight: 600;
    color: #775441;
    margin-bottom: 15px;
}

.page-template-page-services .almaz-page p {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 12px;
}

/* Content block */
.page-template-page-services .almaz-block {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 40px 0;
    border-bottom: 1px solid rgba(119, 84, 65, 0.08);
    box-sizing: border-box;
}

.page-template-page-services .almaz-block:last-child {
    border-bottom: none;
}

/* Reverse block layout */
.page-template-page-services .almaz-block.reverse {
    flex-direction: row-reverse;
}

/* Light background separation */
.page-template-page-services .almaz-block:nth-child(even) {
    padding: 60px 40px;
    border-radius: 12px;
}

/* Text section */
.page-template-page-services .almaz-text {
    flex: 1;
    max-width: 540px;
}

/* Image sizing */
.page-template-page-services .almaz-image {
    flex: 1;
}

.page-template-page-services .almaz-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    object-fit: contain;
    height: 250px;
}

/* Flat styled lists */
.page-template-page-services .almaz-page ul {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.page-template-page-services .almaz-page ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 15px;
    color: #444;
}

.page-template-page-services .almaz-page ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #775441;
    font-size: 18px;
    line-height: 1;
}

/* Links and accents */
.page-template-page-services .almaz-page a {
    color: #775441;
    text-decoration: none;
    border-bottom: 1px dashed rgba(119, 84, 65, 0.4);
}

.page-template-page-services .almaz-page a:hover {
    color: #F8BF02;
    border-color: #F8BF02;
}

/* Responsive layout */

/* Tablet layout */
@media (max-width: 992px) {
    .page-template-page-services .almaz-block {
        gap: 40px;
    }
}

/* Mobile layout */
@media (max-width: 768px) {
    .page-template-page-services .almaz-page {
        padding: 40px 15px;
        gap: 60px;
    }

    .page-template-page-services .almaz-page h1 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-template-page-services .almaz-page h2 {
        font-size: 22px;
    }

    .page-template-page-services .almaz-block {
        flex-direction: column;
        padding: 30px 0;
    }

    .page-template-page-services .almaz-block.reverse {
        flex-direction: column;
    }

    .page-template-page-services .almaz-block:nth-child(even) {
        padding: 40px 20px;
    }

    .page-template-page-services .almaz-text {
        max-width: 100%;
    }
}

/* Small mobile layout */
@media (max-width: 480px) {
    .page-template-page-services .almaz-page h1 {
        font-size: 24px;
    }

    .page-template-page-services .almaz-page p,
    .page-template-page-services .almaz-page ul li {
        font-size: 15px;
    }
}


/* Force single column layout */

.page-template-page-services .site-content,
.page-template-page-services #content {
    display: block !important;
    width: 100% !important;
}

/* Primary content area */
.page-template-page-services #primary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 auto !important;
}

/* Force remove sidebar */
.page-template-page-services #secondary,
.page-template-page-services .sidebar,
.page-template-page-services .widget-area {
    display: none !important;
}

/* Theme container override */
.page-template-page-services .wrap,
.page-template-page-services .inner-wrap {
    max-width: 100% !important;
    width: 100% !important;
}

/* Footer always separate */
.page-template-page-services #colophon.site-footer {
    display: block !important;
    width: 100% !important;
    clear: both !important;
}


/* ======================================
   SERVICES — FIX TOP OFFSET FROM HEADER
====================================== */

/* Remove theme padding */
.page-template-page-services #primary {
    padding-top: 0 !important;
}

/* Prevent margin collapse */
.page-template-page-services .entry-content {
    margin-top: 0 !important;
}

/* Manual spacing control */
.page-template-page-services .almaz-page {
    padding-top: 20px;
}


/* Vertical spacing optimization */
@media (max-width: 768px) {

    /* Main page container */
    .page-template-page-services .almaz-page {
        padding: 30px 15px;        /* было 40px */
        gap: 10px;                 /* было 60px — главный источник "воздуха" */
    }

    /* Main heading */
    .page-template-page-services .almaz-page h1 {
        margin-bottom: 20px;       /* было 30px */
    }

    /* Content block */
    .page-template-page-services .almaz-block {
        flex-direction: column;
        gap: 10px;                 /* было 60px (унаследовано) */
        padding: 20px 0;           /* было 30px 0 */
    }

    /* Reverse layout becomes column on mobile */
    .page-template-page-services .almaz-block.reverse {
        flex-direction: column;
    }

    /* Background highlight blocks */
    .page-template-page-services .almaz-block:nth-child(even) {
        padding: 25px 15px;        /* было 40px 20px */
        border-radius: 10px;
    }

    /* Text section */
    .page-template-page-services .almaz-text {
        max-width: 100%;
    }

    /* Block headings */
    .page-template-page-services .almaz-page h2 {
        margin-bottom: 10px;       /* было 15px */
    }

    /* Paragraph spacing */
    .page-template-page-services .almaz-page p {
        margin-bottom: 8px;        /* было 12px */
    }

    /* Image sizing */
    .page-template-page-services .almaz-image img {
        height: 200px;             /* было 250px */
    }

    /* List spacing */
    .page-template-page-services .almaz-page ul {
        margin: 15px 0;            /* было 20px */
    }

    .page-template-page-services .almaz-page ul li {
        margin-bottom: 8px;        /* было 10px */
    }
}


/* Moderate vertical rhythm compression */
@media (min-width: 769px) and (max-width: 992px) {

    /* Content block */
    .page-template-page-services .almaz-block {
        gap: 30px;                 /* было 40px */
        padding: 30px 0;           /* было 40px 0 */
    }

    /* Background blocks */
    .page-template-page-services .almaz-block:nth-child(even) {
        padding: 40px 25px;        /* было 60px 40px */
    }

    /* Headings */
    .page-template-page-services .almaz-page h2 {
        margin-bottom: 12px;       /* было 15px */
    }

    /* Paragraph spacing */
    .page-template-page-services .almaz-page p {
        margin-bottom: 10px;       /* было 12px */
    }

    /* Image sizing */
    .page-template-page-services .almaz-image img {
        height: 220px;             /* промежуточное значение */
    }
}



/* Banner */
/* Image left / text right layout */

.page-template-page-services .almaz-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 60px;
    padding: 40px 0 50px;

    border-bottom: 1px solid rgba(119, 84, 65, 0.08);
    box-sizing: border-box;
}

/* Left section - image */

.page-template-page-services .almaz-hero-left {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.page-template-page-services .almaz-hero-left img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Right section - text */

.page-template-page-services .almaz-hero-right {
    flex: 1;
    max-width: 560px;
}

.page-template-page-services .almaz-hero-title {
    margin: 0 0 20px 0;

    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;

    color: #775441;
}

/* Transport directions */

.page-template-page-services .almaz-hero-types {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    font-size: 18px;
    font-weight: 500;
    color: #775441;
}

.page-template-page-services .almaz-hero-types span {
    position: relative;
    margin-right: 18px;
    padding-right: 24px;
}

.page-template-page-services .almaz-hero-types span::after {
    content: "•";
    position: absolute;
    right: 0;
    top: -1px;

    font-size: 24px;
    line-height: 1;
    color: rgba(119, 84, 65, 0.7);
}

.page-template-page-services .almaz-hero-types span:last-child {
    margin-right: 0;
    padding-right: 0;
}

.page-template-page-services .almaz-hero-types span:last-child::after {
    display: none;
}

/* Responsive layout */

@media (max-width: 992px) {
    .page-template-page-services .almaz-hero {
        gap: 40px;
    }

    .page-template-page-services .almaz-hero-title {
        font-size: 28px;
    }

    .page-template-page-services .almaz-hero-types {
        font-size: 16px;
    }

    .page-template-page-services .almaz-hero-types span::after {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .page-template-page-services .almaz-hero {
        flex-direction: column;
        align-items: flex-start;

        gap: 16px;
        padding: 30px 0 35px;
    }

    .page-template-page-services .almaz-hero-right {
        max-width: 100%;
    }

    .page-template-page-services .almaz-hero-title {
        font-size: 26px;
    }

    .page-template-page-services .almaz-hero-types {
        font-size: 15px;
    }

    .page-template-page-services .almaz-hero-types span::after {
        font-size: 20px;
    }
}


.page-template-page-services .almaz-hero-types span::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;

    width: 6px;
    height: 6px;

    background: rgba(119, 84, 65, 0.6);

    transform: translateY(-50%);
}


/* Reorder text and image */

@media (max-width: 992px) {

    /* Container remains flex */
    .page-template-page-services .almaz-hero {
        flex-direction: column;
    }

    /* Text first */
    .page-template-page-services .almaz-hero-right {
        order: 1;
        max-width: 100%;
    }

    /* Image second */
    .page-template-page-services .almaz-hero-left {
        order: 2;
        width: 100%;
    }
}


/* =========================================================
   HERO — CENTER ALIGN (TABLET + MOBILE)
========================================================= */

@media (max-width: 992px) {

    /* Main container */
    .page-template-page-services .almaz-hero {
        align-items: center;
        text-align: center;
    }

    /* Text block */
    .page-template-page-services .almaz-hero-right {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Heading alignment */
    .page-template-page-services .almaz-hero-title {
        text-align: center;
    }

    /* Transport types */
    .page-template-page-services .almaz-hero-types {
        justify-content: center;
    }

    .page-template-page-services .almaz-hero-types span {
        margin-right: 14px;
        padding-right: 18px;
    }

    /* Image alignment */
    .page-template-page-services .almaz-hero-left {
        justify-content: center;
    }

    .page-template-page-services .almaz-hero-left img {
        margin: 0 auto;
    }
}


/* =========================================================
   HERO — MIN TOP OFFSET (TABLET + MOBILE)
========================================================= */

@media (max-width: 992px) {

    /* Minimum page container offset */
    .page-template-page-services .almaz-page {
        padding-top: 8px;
    }

    /* Compress hero spacing */
    .page-template-page-services .almaz-hero {
        padding-top: 10px;     /* было 40px */
        padding-bottom: 20px;  /* было 50px */
    }
}


/* Reduce H1 size */

@media (max-width: 768px) {

    .page-template-page-services .almaz-hero-title {
        font-size: 24px;      /* было 26px */
        line-height: 1.25;
    }
}
