/* =========================================================
   pereoborudovanie-kontejnerov.html — стили страницы
   «Переоборудование морских контейнеров под бытовые помещения»
   ========================================================= */

/* ===== Блок 1: выбор решения по назначению ===== */
.po-solutions-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--black) 0, var(--bg-section) 50%, var(--black) 100%);
    position: relative;
    overflow: hidden;
}

.po-group {
    margin-top: 44px;
}

.po-group-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-head);
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 18px;
}

.po-group-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--divider-section), transparent);
}

.po-group-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    overflow: hidden;
}

.po-group-media {
    overflow: hidden;
}

.po-group-media img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1152 / 928;
    object-fit: cover;
    transition: transform 0.5s var(--ease-pop);
}

.po-group-media:hover img {
    transform: scale(1.03);
}

.po-group-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 26px 28px;
}

.po-group-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.po-group-list li {
    font-size: 16px;
    line-height: 1.6;
}

.po-group-meta {
    display: grid;
    gap: 8px;
    width: fit-content;
    margin: 20px auto 0;
    padding-top: 18px;
    border-top: 1px solid hsla(0, 0%, 100%, 0.1);
}

.po-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-size: 15px;
    line-height: 1.5;
}

.po-meta-label {
    color: var(--text-muted);
}

.po-meta-value {
    font-weight: 700;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.po-meta-note {
    margin: 2px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
    text-align: right;
}

/* ===== Блок 2: этапы переоборудования ===== */
.po-steps-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--black) 0, var(--bg-section) 55%, var(--black) 100%);
    position: relative;
    overflow: hidden;
}

.po-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 44px;
}

.po-step {
    position: relative;
    padding: 26px 24px;
    overflow: visible;
    transition-property: background-color, color, border-color, border-radius, box-shadow, transform, opacity;
    transition-duration: 0.4s;
    transition-timing-function: var(--ease-pop);
}

.po-step::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), transparent 70%);
    opacity: 0.25;
}

/* стрелка-коннектор между карточками в ряду (десктоп, 3 колонки) */
.po-step:not(:nth-child(3n))::after {
    content: "\2192";
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--bg-section);
    border: 1px solid rgba(122, 172, 255, 0.55);
    color: var(--blue-light);
    font-size: 15px;
    box-shadow: 0 4px 14px rgba(46, 123, 255, 0.35);
    pointer-events: none;
}

/* последний шаг — без стрелки */
.po-step:nth-child(7)::after {
    display: none;
}

.po-step:hover {
    transform: translateY(-6px);
    border-color: rgba(46, 123, 255, 0.55);
    box-shadow: 0 14px 34px rgba(46, 123, 255, 0.22);
}

.po-step-number {
    margin: 0 0 16px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 58px;
    line-height: 1;
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(122, 172, 255, 0.85);
    font-variant-numeric: tabular-nums;
}

.po-step-title {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.1px;
    line-height: 1.55;
    margin: 0;
}

/* ===== Почему морской контейнер ===== */
.po-why-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--black) 0, var(--bg-section) 50%, var(--black) 100%);
    position: relative;
    overflow: hidden;
}

.po-why-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 44px;
    padding: 0;
    list-style: none;
}

.po-why-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    transition-property: background-color, color, border-color, border-radius, box-shadow, transform, opacity;
    transition-duration: 0.4s;
    transition-timing-function: var(--ease-pop);
}

.po-why-item:hover {
    transform: translateY(-4px);
    border-color: hsla(0, 0%, 100%, 0.2);
}

.po-why-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(46, 123, 255, 0.12);
    border: 1px solid rgba(46, 123, 255, 0.25);
    color: var(--blue);
}

.po-why-icon svg {
    width: 22px;
    height: 22px;
}

.po-why-item h3 {
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.2px;
    margin: 0 0 8px;
}

.po-why-item p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
}

.po-why-dims {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.po-why-dims li {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.po-why-dims strong {
    color: var(--white);
    font-weight: 700;
}

/* ===== Как формируется стоимость ===== */
.po-cost-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--black) 0, var(--bg-section) 50%, var(--black) 100%);
    position: relative;
    overflow: hidden;
}

.po-cost-panel {
    max-width: 880px;
    margin: 0 auto;
    padding: 44px 44px 48px;
}

.po-cost-factors {
    display: grid;
    gap: 12px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.po-cost-factors li {
    position: relative;
    padding-left: 26px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
}

.po-cost-factors li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0 4px rgba(46, 123, 255, 0.15);
}

.po-cost-btn {
    margin-top: 30px;
    line-height: 1.5;
}

/* ===== Фото переоборудования ===== */
.po-photos-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--black) 0, var(--bg-section) 55%, var(--black) 100%);
    position: relative;
    overflow: hidden;
}

.po-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 44px;
}

.po-photo-item {
    overflow: hidden;
}

.po-photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.5s var(--ease-pop);
}

.po-photo-item:hover .po-photo {
    transform: scale(1.03);
}

/* ===== Адаптив ===== */
@media (max-width: 1100px) {
    .po-steps-grid { grid-template-columns: repeat(2, 1fr); }
    .po-steps-grid .po-step::after { display: none; }
    .po-why-list { grid-template-columns: repeat(2, 1fr); }
    .po-photos-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .po-solutions-section,
    .po-steps-section,
    .po-photos-section,
    .po-why-section,
    .po-cost-section { padding: 56px 0; }

    .po-group-body { grid-template-columns: 1fr; gap: 0; }
    .po-steps-grid { grid-template-columns: 1fr; gap: 14px; }
    .po-photos-grid { grid-template-columns: 1fr; gap: 14px; }
    .po-why-list { grid-template-columns: 1fr; gap: 14px; }

    .po-group { margin-top: 32px; }
    .po-group-title { font-size: 20px; }
    .po-group-info { padding: 20px 18px; }
    .po-cost-panel { padding: 30px 22px 34px; }
}

/* FAQ: синхронизированные ответы длиннее общего лимита — поднимаем лимит
   только на этой странице (main.css не трогаем) */
.faq-item.active .faq-answer {
    max-height: 500px;
}
