/* =========================================================
   mobile.css
   Подключается через <link media="(max-width: 767px)">
   Здесь только переопределения для мобильных.
   ========================================================= */

/* =========================================================
   Базовая типографика
   ========================================================= */

body {
    font-size: 15px;
    line-height: 1.6;
}

/* Заголовки — принудительно меньше, перебиваем clamp() из desktop */
h1, .h1 {
    font-size: clamp(36px, 4vw, 48px);
    line-height: 1.25 !important;
    margin-bottom: 16px !important;
}
h2, .h2 {
    font-size: clamp(30px, 3.5vw, 36px);
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
}
h3, .h3 {
    font-size: clamp(28px, 2.2vw, 32px);
    margin-bottom: 10px !important;
}

p {
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 12px;
}

/* =========================================================
   Отступы контента
   ========================================================= */

.mysite main {
    width: 100%;
    margin: 0 auto;
}

/* Единый боковой отступ на мобилке — 6% (как .hero-copy в дизайне) */
main > div,
main > section {
    padding-left: 6%;
    padding-right: 6%;
}

/* Внутри секции не дублируем */
.section {
    padding: 20px 6%;
}

.container-wide,
.container-narrow {
    padding-left: 6%;
    padding-right: 6%;
}

/* =========================================================
   Контент RichEditor (.prose)
   ========================================================= */

.prose {
    font-size: 15px;
    line-height: 1.65;
}
.prose h2 { font-size: clamp(30px, 3.5vw, 36px) !important; }
.prose h3 { font-size: clamp(28px, 2.2vw, 32px) !important; }
.prose img { border-radius: 0; }

.prose table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

pre, code {
    overflow-x: auto;
    max-width: 100%;
}

/* =========================================================
   Сетки — 1 колонка
   ========================================================= */

.split-2 {
    grid-template-columns: 1fr;
    gap: 32px;
}

/* Точечно: сетки карточек в секциях */
.grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
}

/* =========================================================
   Header
   ========================================================= */

.header {
    height: 80px;
    padding: 0;
	border-bottom: none;
}

.header-top {
    height: 80px;
}

.brand {
    font-size: 11px;
    letter-spacing: 1.5px;
    gap: 10px;
}
.brand small {
    font-size: 7px;
    letter-spacing: 1.8px;
}

.brand-emblem {
    width: 46px;
    height: 46px;
}
.brand-emblem .brand-logo {
    width: 40px;
}

.menu-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    background: none;
    border: 0;
    color: var(--text);
    padding: 15px 0;
}
.menu-toggle span {
    font-size: 21px;
}

.header nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 80px;
    padding: 25px 6%;
    background: var(--deep);
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}
.header nav.open {
    display: flex;
}
.header .nav-contact {
    margin-top: 10px;
    justify-content: space-between;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
    display: flex;
    flex-direction: column;
    padding: 0;
    min-height: 0;
    gap: 0;
}
.hero-copy {
    padding: 36px 6% 24px;
}
.hero-description {
    font-size: 15px;
    margin-bottom: 25px;
}
.hero-photo {
    margin: 0 6%;
    height: 540px;
}
.hero-photo img {
    min-height: 0;
    position: relative;
    height: 100%;
    object-position: 50% 35%;
}
.hero-photo::after {
    background:
        linear-gradient(0deg, var(--ink), transparent 15%),
        linear-gradient(90deg, var(--ink), transparent 12%);
}

/* =========================================================
   Кнопки — крупные под палец
   ========================================================= */

button,
.btn,
[data-func^="all-"],
[data-func="load-more"],
[data-func="review-open"],
[data-func="form-submit"],
[data-func="review-submit"] {
    min-height: 44px;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 15px;
}

/* =========================================================
   Формы
   ========================================================= */

input, textarea, select {
    font-size: 16px !important; /* iOS не зумит при фокусе */
    padding: 12px !important;
}

/* =========================================================
   Карточки — на всю ширину
   ========================================================= */

[data-func="product-card"],
[data-func="post-card"],
[data-func="review-card"],
[data-func="quick-link-card"] {
    width: 100% !important;
}

/* =========================================================
   Модалка отзыва
   ========================================================= */

[data-func="modal-overlay"] + div,
.fixed.inset-0 > div.relative {
    max-width: calc(100% - 24px) !important;
    margin: 12px !important;
}

/* =========================================================
   Слайдер
   ========================================================= */

.slide-image-i {
    height: 180px !important;
}

div[data-func="slider-prev"],
div[data-func="slider-next"],
.swiper-button-prev,
.swiper-button-next {
    width: 15px;
}
div[data-func="slider-pagination"] {
    bottom: 0 !important;
}

.swiper-slide-item {
    width: 80vw;
    max-width: 80vw;
}

/* =========================================================
   Footer
   ========================================================= */

footer {
    padding-left: 6%;
    padding-right: 6%;
}
footer .grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
}

img[data-func="footer-logo"] {
    height: 50px;
    width: auto;
}

.mysite-footer {
    padding: 35px 20px;
}

.mysite-footer .phone {
    font-size: 2rem;
}

.mysite-footer a.group {
    padding: 5px;
}

.brand-line {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

/* =========================================================
   Мобильное меню (если используется отдельный блок)
   ========================================================= */

#mobile-menu ul {
    flex-direction: column !important;
    gap: 4px !important;
}

.portrait-photo {
	float: none;
	width: 100%;
	max-width: 280px;
}

.about-title .portrait-photo figcaption {
    display:none;
}

.breadcrumb {
    margin-bottom: 15px;
}

.about-title, .about-content {
    padding: 20px;
}

.eyebrow {
    font-size: .5rem;
    margin: 10px 0;
}

#page-home .hero-down,
#page-home .quiet {
    display: none;
}

#family .section-intro {
	grid-template-columns: 1fr;
	gap: 25px;
	margin: 28px 0 30px;
}

#section-03-glavnaia-familylinks .familylinks, 
#section-04-glavnaia-practice .practicelinks, 
#section-05-glavnaia-practicelist .practicelinks, 
#section-blog-business-home .blog-business-home, 
div.familyblog, 
div.practiceblog {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    max-width: 1250px;
    margin: auto;
}
.familylinks, .practicelinks {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    gap: 0;
    flex-direction: column;
}

a.familylinks, a.practicelinks {
    width: 46%;
    margin: 1%;
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #d0d0cd;
    flex-direction: row;
    justify-content: space-between;
}

a.practicelinks {
    margin-left: 0px !important;
    margin-right: 0px !important;

}

a.familylinks h3, a.practicelinks h3 {
	margin-bottom: 0 !important;
	font-size: 1.2rem;
}

.about {
        padding: 45px 6%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 22px;
    }
	
.prose .about-copy h2 {
	font-size: clamp(32px, 3.5vw, 40px) !important;
}

.prose .about-copy h2 .h2-t2 {
    font-size: clamp(24px, 2.2vw, 30px) !important;
}

.blog-business-home {
    padding-left: 0;
    padding-right: 0;
}

.blog-page-01 {
    padding-left: 20px;
    padding-right: 20px;
}

#section-blog-business-home .buttons-link,
.familyblog .buttons-link,
.practiceblog .buttons-link {
    padding-left: 20px;
    padding-right: 20px;
}

#page-family .prose, #page-cases .prose, #page-journal .prose, #page-myblog .prose, .family-child .prose, .practice-child .prose {
    max-width: 1250px;
    margin: auto;
    padding: 20px;
}

.inner-hero h1 {
    color: var(--paper);
    margin-top: 36px;
}

#page-family a.familylinks {
    width: 100%;
    margin: 0px;
}
