/*
Theme Name: Роман Ремонт Насосов
Theme URI: https://example.com/roman-remont-theme
Author: Валерий
Author URI: https://example.com
Description: Кастомная тема WordPress для сайта по ремонту канализационных насосов. Ширина контента — 1213 px по центру, верхний колонтитул, слайдер, блок описания и футер настраиваются через админ‑панель. Основана на Tailwind CSS.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.0
Text Domain: roman-pump
*/

/*
 * Эта таблица стилей intentionally не содержит большого количества CSS‑кода, так как стили задаются с помощью Tailwind CSS.
 * Tailwind подключается из CDN в файле header.php, поэтому файлы темы остаются лёгкими. При необходимости вы можете заменить
 * подключение CDN на скомпилированную версию Tailwind и подключить её через functions.php. См. документацию по созданию
 * тем с Tailwind для подробностей【65962505074599†L63-L123】.
 */

/* Базовая раскладка, чтобы футер оставался внизу при коротком контенте. */
/* Базовые настройки */
body {
    font-family: Arial, sans-serif;
}

.site-header {
    transition: padding 0.28s ease;
}

.site-header-track {
    transition: width 0.28s ease, background-color 0.28s ease, box-shadow 0.28s ease;
}

.site-header-shell {
    transition: border-radius 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease, padding 0.28s ease, max-width 0.28s ease;
}

body.is-scrolled .site-header {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
}

body.is-scrolled .site-header-track {
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
}

body.is-scrolled .site-header-shell {
    box-shadow: none;
    background: transparent;
}

.head_h3 {
    color: #000;
    font-weight: 700;
}

/* Основные стили секции */
section.my-8.prose.max-w-none.mt-4 {
    margin-top: 2rem; /* отступ сверху */
    line-height: 1.6; /* межстрочный интервал */
    color: #333; /* основной цвет текста */
}

/* Стилизация заголовков внутри абзацев */
section p strong {
    display: block; /* делаем жирный текст отдельным блоком */
    margin-bottom: 0.5em; /* небольшой отступ снизу */
    font-size: 1.2em; /* увеличенный размер шрифта */
    color: #333333; /* синий оттенок для выделения */
}

/* Оформление маркированных списков */
section ul {
    list-style-type: disc; /* стандартные маркеры */
    padding-left: 1.5em; /* левое поле для пунктов списка */
}

/* Простые абзацы */
section p {
    margin-bottom: 1em; /* расстояние между абзацами */
}

/* Специальные элементы */
section hr {
    border: none;
    height: 1px;
    background-color: #ccc;
    margin: 2em 0;
}

.header_logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 18px;
}

.header-brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: min(100%, 118px);
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.header-brand-image {
    width: 100%;
    max-width: 118px;
    height: auto;
}

.header-phone-pill {
    box-shadow: 0 12px 30px rgba(36, 75, 117, 0.24);
}

.header-social-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.header-contact-meta a {
    text-decoration: none;
}

.header-contact-meta {
    line-height: 1.25;
}

.header-brand-copy {
    display: block;
    max-width: 260px;
}

.header-burger {
    display: none;
}

.header-mobile-actions {
    display: none;
}

.header-meta-row-mobile {
    display: none;
}

.header-burger-box {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}

.header-burger-box span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #334155;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.header-menu-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: none;
}

.header-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.46);
    backdrop-filter: blur(6px);
}

.header-menu-panel {
    position: relative;
    width: min(420px, calc(100vw - 24px));
    margin: 16px auto 0;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.20);
    padding: 20px;
}

.header-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.header-menu-close {
    border: 0;
    background: #f1f5f9;
    color: #334155;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.header-menu-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-menu-list a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 16px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.header-menu-list a:hover,
.header-menu-list a:focus-visible {
    background: #e2e8f0;
    outline: none;
}

body.menu-open {
    overflow: hidden;
}

body.menu-open .header-menu-modal {
    display: block;
}

.site-nav .menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav .menu li {
    margin: 0;
}

.site-nav .menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    color: #334155;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.site-nav .menu a:hover,
.site-nav .menu a:focus-visible {
    background-color: #f1f5f9;
    color: #0f172a;
    outline: none;
}

.site-nav .menu .current-menu-item > a,
.site-nav .menu .current-menu-parent > a,
.site-nav .menu .current_page_item > a,
.site-nav .menu .current_page_parent > a {
    background: linear-gradient(135deg, #244b75 0%, #315f8f 100%);
    color: #fff;
    box-shadow: 0 12px 30px rgba(36, 75, 117, 0.18);
}

@media (max-width: 1023px) {
    .site-header-shell > .grid {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .header_logo {
        width: auto;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 14px;
        min-width: 0;
    }

    .header-mobile-actions {
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        align-self: center;
    }

    .header-burger {
        display: inline-flex;
    }

    .site-nav {
        display: none;
    }

    .header-meta-row-mobile {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        width: 100%;
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .header-brand-link {
        width: 90px;
    }

    .header-brand-image {
        max-width: 90px;
    }

    .header-phone-pill {
        flex: 0 0 auto;
        padding: 11px 16px;
    }

    .header-social-link {
        display: none;
    }

    body.menu-open .header-burger-box span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    body.menu-open .header-burger-box span:nth-child(2) {
        opacity: 0;
    }

    body.menu-open .header-burger-box span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
}

@media (max-width: 767px) {
    .site-header {
        padding-top: 12px;
    }

    .site-header-shell {
        border-radius: 24px;
    }

    .header_logo {
        justify-content: flex-start;
        text-align: left;
        flex-wrap: nowrap;
        gap: 12px;
        width: 100%;
    }

    .header-brand-link {
        width: 90px;
    }

    .header-brand-image {
        max-width: 90px;
    }

    .header-brand-copy {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header,
    .site-header-track,
    .site-header-shell {
        transition: none;
    }
}

.wpcf7-form {
    position: relative;
}

form input {
    border: 1px solid #01344f;
    border-radius: 10px;
    padding: 4px 20px;
    width: 100%;
    min-width: 320px;
    max-width: 435px;
}

form textarea {
    border: 1px solid #01344f;
    border-radius: 7px;
    padding: 4px 10px;
    width: 100%;
    min-width: 320px;
    max-width: 435px;
}

.wpcf7-submit {
    border-radius: 7px;
    background: #244b75;
    color: #fff;
    padding: 20px 0;
}

.wpcf7 form .wpcf7-response-output {
    margin: 0 !important;
    padding: 1.2em 1em;
    border: 2px solid #00a0d2;
    width: 100%;
    max-width: 438px;
    position: absolute;
    top: -130px;
    background: #fff;
    border-radius: 7px;
    box-shadow: 0px 0px 15px #bdc7d1;
}

.contacts-page .wpcf7 {
    width: 100%;
}

.contacts-page .wpcf7-form {
    display: grid;
    gap: 16px;
}

.contacts-page .wpcf7-form p {
    margin: 0;
}

.contacts-page .wpcf7-form label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
}

.contacts-page .wpcf7-form-control-wrap {
    display: block;
    margin-top: 6px;
}

.contacts-page form input,
.contacts-page form textarea {
    min-width: 0;
    max-width: none;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 12px 16px;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contacts-page form textarea {
    min-height: 180px;
    resize: vertical;
}

.contacts-page form input:focus,
.contacts-page form textarea:focus {
    outline: none;
    border-color: #244b75;
    box-shadow: 0 0 0 4px rgba(36, 75, 117, 0.12);
}

.contacts-page .wpcf7-submit {
    width: 100%;
    border: 0;
    border-radius: 16px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    color: #ffffff;
}

.contacts-page .wpcf7-submit:hover,
.contacts-page .wpcf7-submit:focus-visible {
    background: #1d3d5f;
    transform: translateY(-1px);
    outline: none;
}

.contacts-page .wpcf7-spinner {
    margin: 12px 0 0;
}

.contacts-page .wpcf7 form .wpcf7-response-output {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: 8px !important;
}

@media (max-width: 767px) {
    .contacts-page .wpcf7-submit {
        padding: 14px 20px;
    }
}

.home-slider-card .n2-ss-slider,
.home-slider-card .n2-ss-slider-1,
.home-slider-card .n2-ss-slide-background,
.home-slider-card .n2-ss-slide {
    border-radius: 22px !important;
}

.home-slider-card img {
    border-radius: 22px;
}

.home-content-card {
    color: #334155;
    line-height: 1.75;
}

.home-content-card h1,
.home-content-card h2,
.home-content-card h3,
.home-content-card h4 {
    color: #0f172a;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px;
}

.home-content-card h2 {
    font-size: 32px;
}

.home-content-card h3 {
    font-size: 24px;
    margin-top: 32px;
}

.home-content-card p {
    margin: 0 0 16px;
}

.home-content-card ul {
    margin: 0 0 20px;
    padding-left: 20px;
    list-style: disc;
}

.home-content-card li {
    margin-bottom: 8px;
}

.home-content-card strong {
    color: #0f172a;
}

@media (max-width: 767px) {
    .home-content-card h2 {
        font-size: 28px;
    }

    .home-content-card h3 {
        font-size: 22px;
    }
}

.site-footer a {
    text-decoration: none;
}

.site-footer-note {
    max-width: 280px;
}

@media (max-width: 1023px) {
    .site-footer-note {
        max-width: none;
    }
}
