/*!
Theme Name: DPTheme
Theme URI: http://underscores.me/
Author: Kristina
Author URI: http://underscores.me/
Description: Description
Version: 1.0.7
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: dptheme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

DPTheme is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
    margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
    display: block;
    max-width: 1600px;
    margin: 0 auto;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
    font-size: 45px;
    margin: 20px auto;
    text-align: center;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
    font-family: monospace, monospace;
    font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
    font-family: var(--font-base);
    color: rgba(55, 24, 25, 0.7);
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
}

a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: #4F6D5E;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
a:active,
a:focus,
a:focus-within,
a:focus-visible,
a:hover,
a:visited {
    outline: none;
    border: none;
}
a:hover {
    color: rgba(55, 24, 25, 0.9);
}

a:hover::after {
    transform: scaleX(1);
}

a:focus-visible::after {
    transform: scaleX(1);
    background: rgba(242, 156, 153, 0.9);
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
    font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
    font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
    border-style: none;
    border-radius: 10px;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
    overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
    text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
/* button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
} */

/**
 * Correct the padding in Firefox.
 */
fieldset {
    padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0;
    white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
    vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
    overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
    display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
    display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
    display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
    display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
    box-sizing: inherit;
}

html {
    box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
:root {
    --font-base: "Montserrat", Arial, sans-serif;
    --font-alt: "Montserrat Alternates", "Montserrat", Arial, sans-serif;
    --color-accent: #E7EFE8;
    --color-light: #f6f5f4;
    --color-text: #5E615F;
    --section-padding-desktop: 50px;
    --section-padding-mobile: 30px;
    --border-radius-large: 25px;
    --border-radius-small: 10px;
    --border-dashed: 2px dashed #C97B63;
    --rotate-left: 10deg;
    --rotate-right: -10deg;
    --shadow-contrast: 0px 0px 12px 0px #0000001a;
    --shadow-light: -30px 30px 46.85px 0px #00000014;
    --font-small: 14px;
    --font-large: 45px;
    --font-normal: 20px;
    --small-container: 1320px;
    --large-container: 1600px;
}

body,
button,
input,
select,
optgroup,
textarea {
    color: #5E615F;
    font-family: var(--font-base);
    font-size: 1.25rem;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    clear: both;
    font-family: var(--font-alt);
    font-weight: 400;
}

p {
    margin: 15px 0;
}

dfn,
cite,
em,
i {
    font-style: italic;
}
.slick-slide img {
    margin: 0 auto;
}
blockquote{
    margin: 0;
        margin-top: 0px;
    padding: 10px;
    border-radius: var(--border-radius-large);
    border: 2px dashed #C97B63;
    text-align: center;
    background: #f6f5f4;
    display: flow-root;
 }

address {
    margin: 0 0 1.5em;
}

pre {
    background: #eee;
    font-family: "Courier 10 Pitch", courier, monospace;
    line-height: 1.6;
    margin-bottom: 1.6em;
    max-width: 100%;
    overflow: auto;
    padding: 1.6em;
}

code,
kbd,
tt,
var {
    font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
    border-bottom: 1px dotted #666;
    cursor: help;
}

mark,
ins {
    background: #fff9c0;
    text-decoration: none;
}

big {
    font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
    background: #fff;
}

hr {
    background-color: #ccc;
    border: 0;
    height: 1px;
    margin-bottom: 1.5em;
}
a:hover, button:hover{
    cursor: pointer
}
ul,
ol {
    margin: 0 0 1.5em 3em;
}

ul {
    list-style: disc;
    margin: 10px 0;
}

ol {
    list-style: decimal;
    margin: 10px 0;
}

li > ul,
li > ol {
    margin-left: 1.5em;
    margin: 5px 0;
}

dt {
    font-weight: 700;
}

dd {
    margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
    max-width: 100%;
}

[class^="formdesigner-popup"] iframe {
    width: 600px !important;
    margin: 0 auto !important;
}
img {
    height: auto;
    max-width: 100%;
    border-radius: var(--border-radius-small);
}

figure {
    margin: 1em 0;
}

table {
    margin: 0 0 1.5em;
    width: 100%;
}

/* Links
--------------------------------------------- */
/* a {
	color: #ffffff;
}

a:visited {
	color: #ffffff;
} */

/* a:focus {
    outline: thin dotted;
} */

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    border: 1px solid;
    border-color: #ccc #ccc #bbb;
    border-radius: 3px;
    background: #e6e6e6;
    color: rgba(0, 0, 0, 0.8);
    line-height: 1;
    padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
    border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
    color: #666;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
    color: #111;
}

select {
    border: 1px solid #ccc;
}

textarea {
    width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
    display: block;
    width: 100%;
}

.main-navigation .menu-current-text {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-alt);
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 1;
    padding: 10px 12px;
    border-radius: var(--border-radius-small);
    text-decoration: none;
    color: #371819;
    width: max-content;
}
.main-navigation ul {
    display: none;
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.main-navigation ul ul {
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 100%;
    left: -999em;
    z-index: 99999;
    padding: 15px;
}

.main-navigation ul ul ul {
    left: -999em;
    top: 0;
    overflow-y: scroll;
    max-height: calc(70vh - 100px);
    max-width: 500px;
    overflow-x: hidden;
    width: 100%;
    box-shadow: 0 3px 3px 1px rgba(0, 0, 0, 0.2);
    padding: 15px;
}
.main-navigation ul ul li.menu-item-has-children > a {
    padding-right: 30px;
}
.main-navigation ul ul li.menu-item-has-children > a::after {
        content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    left: auto;
    bottom: auto;
    width: 12px;
    height: 12px;
    transform: translateY(-50%) rotate(0deg);
    transform-origin: 50% 50%;
    transition: transform 0.25s 
ease;
    display: inline-block;
    background-image: url(/wp-content/themes/dptheme/assets/img/ArrowDown.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-color: transparent;

}
.main-navigation ul ul li.menu-item-has-children:hover > a::after, 
.main-navigation ul ul li.menu-item-has-children:focus-within > a::after {
    transform: translateY(-50%) rotate(180deg);
}
.main-navigation ul ul li {
    width: 100%;
}
.main-navigation ul ul ul li a{
    width: 100%;
}
 .main-navigation ul ul ul::-webkit-scrollbar {
    width: 4px; /* Ширина вертикального скроллбара */
    }

.main-navigation ul ul ul::-webkit-scrollbar-track {
    background: #fff; /* Цвет фона дорожки */
    border-radius: 10px;
    }

.main-navigation ul ul ul::-webkit-scrollbar-thumb {
    background: var(--color-accent); /* Градиент для ползунка */

    }

.main-navigation ul ul ul::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent); /* Hover-эффект */
    }

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
    display: block;
    left: 100%;
}

.main-navigation ul ul a {
    /* width: 200px; */
    width: max-content;
    font-size: 14px;
    padding: 5px 10px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
    left: auto;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    text-decoration: none;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
    display: block;
}

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
    margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
    display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
    flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
    text-align: end;
    flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
    display: block;
}

.post,
.page {
    margin: 0 0 1.5em;
    overflow-x: hidden;
    max-width: 100vw;
}

.updated:not(.published) {
    display: none;
}

.page-content,
.entry-summary {
    margin: 1.5em 0 0;
}

.page-links {
    clear: both;
    margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
    word-wrap: break-word;
}

.bypostauthor {
    display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
    margin: 0 0 1.5em;
}

.widget select {
    max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
    border: none;
    margin-bottom: 0;
    margin-top: 0;
    padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
    display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption .wp-caption-text {
    margin: 0.8075em 0;
}

.wp-caption-text {
    text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
    margin-bottom: 1.5em;
    display: grid;
    grid-gap: 1.5em;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    width: 100%;
}

.gallery-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
    grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
    grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
    grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
    display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
    display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
    display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
    outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {
    /*rtl:ignore*/
    float: left;

    /*rtl:ignore*/
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}

.alignright {
    /*rtl:ignore*/
    float: right;

    /*rtl:ignore*/
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
}

/* ================================== */
/* Временные стили для шаблона */
/* ================================== */
#page {
    /* overflow: hidden; */
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 300;
    background: #fff;
    transition:
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

/* лёгкая тень при прокрутке */
.site-header.is-sticky {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.section-header {
    color: #535857;
    text-align: center;
    font-family: var(--font-alt);
    font-weight: 500;
    font-size: 45px;
    line-height: 1.2;
    vertical-align: middle;
    margin: 40px 0;
}
.text-header {
    font-family: var(--font-alt);
    color: var(--color-text);
    font-weight: 500;
    font-size: 28px;
    line-height: 1;
    vertical-align: middle;
}
.base-text {
    color: var(--color-text);
    text-align: left;
    font-family: var(--font-base);
    font-weight: 400;
    font-style: Regular;
    line-height: 1.2;
    letter-spacing: 0%;
    vertical-align: middle;
    font-size: 20px;
}
.billet-text {
    font-family: var(--font-base);
    font-weight: 400;
    font-style: Regular;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 0%;
    vertical-align: middle;
}
.billet-card {
    box-shadow: var(--shadow-contrast);
    background-color: var(--color-light);
    padding: 23px 17px;
}
.billet-light {
    border-radius: var(--border-radius-large);
    padding: 75px 35px;
    color: var(--color-text);
    background-color: var(--color-light);
    box-shadow: var(--shadow-light);
    padding: 20px;
}
.billet-accent {
    border-radius: var(--border-radius-large);
    padding: 75px 35px;
    color: var(--color-text);
    background-color: var(--color-accent);
    box-shadow: var(--shadow-light);
    padding: 20px;
}
.billet-polaroid {
    box-shadow: var(--shadow-contrast);
    background: #fff;
    border-radius: var(--border-radius-small);
    color: var(--color-text);
    font-size: var(--font-small);
    padding: 18px;
}
.billet-dashed {
    background: transparent;
    border-radius: var(--border-radius-small);
    border: var(--border-dashed);
    color: #fff;
    font-family: var(--font-alt);
    padding: 38px 45px;
}
.button-accent,
.button-light {
    border-radius: 50px;
    border: 2px dashed transparent;
    color: var(--color-text);
    font-size: 16px;
    padding: 16px;
    display: inline-block;
    font-weight: 500;
    line-height: 1.2;
    position: static;
    transition: border 0.25s ease;
    cursor: pointer;
}
.button-accent {
    background-color: var(--color-accent);
}
.button-light {
    background-color: var(--color-light);
}
.button-light:active,
.button-light:focus,
.button-light:hover,
.button-accent:hover,
.button-accent:focus,
.button-accent:active {
    border-color: transparent;
    border: 2px dashed #C97B63;
    outline: none;
}
.small-container {
    max-width: var(--small-container);
    padding: 40px 10px;
    margin: 0 auto;
}
.large-container {
    max-width: var(--large-container);
    padding: 40px 10px;
    margin: 0 auto;
}
/* .small-container + .small-container,
    .large-container + .small-container,
    .small-container + .large-container,
    .large-container + .large-container{
    margin: 120px auto;
} */

.site-footer {
    max-width: var(--small-container);
    margin: 120px auto 0;
    padding: 0 10px;
}
.history-archive-grid {
    padding: 0 10px;
    max-width: var(--small-container);
    margin: 10px auto;
}
.large-container {
    max-width: var(--large-container);
    margin: 60px auto;
    padding: 0 10px;
}
/* ================================== */

.block-services__grid.js-services-slick {
    display: block;
}
.slick-track {
    padding: 10px 0px;
}
.block-staff .slick-list {
    min-height: 450px;
}
/* отступы между карточками */
.block-services__grid .slick-slide {
    padding: 0 12px;
}

.slick-btn {
    background: transparent;
    border: none;
    margin: 10px 0;
}

/* Блок услуг */
.block-services__slick-nav {
    display: flex;
    grid-gap: 10px;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.block-services__card {
    /* @include billet-card; */
    box-shadow: var(--shadow-contrast);
    background-color: var(--color-light);
    padding: 23px 17px;
}
.block-services__more-btn {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}
.block-services a.block-services__btn {
    color: #4F6D5E;
}

.block-services {
    position: relative;
}

.block-services__card {
    position: relative;
}
.block-services__thumb-img {
    object-fit: cover;
    height: 280px;
}
.design-img {
    position: absolute;
}
.servise-des-1 {
    top: 10%;
    left: -5%;
    transform: scale(0.9);
}
.servise-des-2 {
    top: 10%;
    right: 0;
    transform: scale(0.5);
}
.servise-des-3 {
    right: -10%;
    bottom: -10%;
}

/* end Блок услуг */

/* первый экран */

.hero__img {
    max-height: 640px;
    min-height: 200px;
    border-radius: var(--border-radius-large);
    overflow: hidden;
}
.hero__img img {
    width: 100%;
    max-height: 640px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--border-radius-large);
}

.hero__promo {
    box-shadow: none;
    position: absolute;
    bottom: -8%;
    left: 5%;
    max-width: 600px;
}
.page-id-10 .entry-title,
.page-id-68 .entry-title,
.page-id-30 .entry-title,
.page-id-30 .footer-map,
.post-34 .entry-title {
    display: none;
}
.hero__promo span {
    font-family: var(--font-alt);
    font-weight: 400;
    font-style: Regular;
    font-size: 30px;
    line-height: 1.3;
    letter-spacing: 0%;
    display: block;
    margin-bottom: 10px;
}
.hero {
    position: relative;
    margin-bottom: 120px;
}
.hero__des {
    position: relative;
}
.hero-des-1 {
    top: -65px;
    left: -65px;

    transform: scale(-1, 1);
}
.hero-des-2 {
    top: -150px;
    right: -150px;
    transform: scale(0.7);
}
.hero-des-3 {
    bottom: -35px;
    right: -65px;
}
.hero-des-4 {
    bottom: 50px;
    left: -120px;
    transform: scale(0.6, 0.6) rotate(50deg);
}

/* end первый экран */

/* о нас */

/* ---------- TOP ---------- */
.about-title {
}

.fan {
    position: relative;
    display: flex;
    margin-top: 10px;
    align-items: center;
    justify-content: center;
}

.fan-card.billet-light {
    padding: 70px 40px;
}
.fan-card.billet-light .text-header {
    font-size: 24px;
}

.fan-card {
    height: 560px;
}
.fan-card img {
    height: 100%;
}
.fan > * {
    width: 25%;
}

.fan-card--text {
    padding: 22px 22px 20px;
    width: 320px;
    min-height: 260px;
}
.fan-card--text h3 {
    margin: 0 0 10px;
}
.fan-card--text p {
    margin: 0;
}

.fan-card--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Позиции/углы как на примере */
.fan-card--left {
    transform: rotate(5deg);
}
.fan-card--mid {
    transform: rotate(-4deg);
}
.fan-card--right {
    transform: rotate(3deg);
}
.fan-card--big {
    transform: rotate(-4deg);
}

.about-des-1 {
    top: 60%;
    left: -300px;
    transform: scale(0.6);
}
.about-des-2 {
    top: 20%;
    right: -260px;
    transform: scale(0.4);
}

/* ---------- BOTTOM BANNER ---------- */
/* .about-bottom {
    margin-top: 34px;
    width: minmax(90vw, 1600px);
} */

.banner {
    min-height: 300px;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius-large);
    position: relative;
}
.banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(0px);
    border-radius: var(--border-radius-large);
}
.banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.15));
    pointer-events: none;
    border-radius: var(--border-radius-large);
}

.banner-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    gap: 60px;
    padding: 26px;
    align-items: center;
}

/* Полароиды */
.polaroids {
    position: relative;
    height: 600px;
}
.polaroid {
    position: absolute;
    background: #fff;
    border-radius: 14px;
    padding: 10px 10px 12px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.06);
    width: 235px;
    height: 285px;
}
.polaroid img {
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    height: 85%;
    object-position: top;
}

.polaroid figcaption {
    margin-top: 8px;
    font-size: 11px;
    color: rgba(0, 0, 0, 0.55);
    text-align: center;
}
.polaroid.p1 {
    right: 135px;
    top: -70px;
    transform: rotate(10deg);
    z-index: 3;
}
.polaroid.p2 {
    right: 250px;
    top: 188px;
    transform: rotate(-11deg);
    z-index: 1;
}
.polaroid.p3 {
    right: 20px;
    bottom: -50px;
    transform: rotate(21deg);
    z-index: 2;
}

/* Контент справа */
.banner-content {
    color: #fff;
    padding: 6px 6px 6px 0;
    height: 100%;
}
.banner-title {
    color: #fff;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 335px));
    grid-gap: 60px;
}
.metric {
    text-align: center;
}
.metric-num {
    margin-bottom: 4px;

    font-family: var(--font-alt);
    font-weight: 600;
    font-style: SemiBold;
    font-size: 45px;
    line-height: 1;
    letter-spacing: 4%;
}
.metric-text {
    font-family: var(--font-alt);
    font-weight: 600;
    font-style: SemiBold;
    font-size: 24px;
    line-height: 1;
    letter-spacing: 4%;
}
/* ---------- Responsive ---------- */

.block-center__footer {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.block-center p{
    margin: 15px 0;
}
/* распорядок дня */

/* ---- GRID (desktop) ---- */
.day-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "tl tr"
        "c1 c2"
        "c3 c4"
        "bl br";
    gap: 26px 34px;
    align-items: start;
}
.day-photo {
    position: relative;
    z-index: 1; /* фон */
}

.day-card {
    position: relative;
    z-index: 2; /* поверх фото */
    padding: 20px 40px;
}

/* ---- PHOTOS ---- */
.day-photo {
    margin: 0;
    border-radius: var(--border-radius-large);
    overflow: hidden;
    max-width: 500px;
    max-height: 300px;
}
.day-photo img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 100%;
}

.day-photo--tl {
    grid-area: tl;
    transform: rotate(var(--rotate-left)) translatey(100px);
    height: 290px;
}
.day-photo--tr {
    grid-area: tr;
    transform: rotate(var(--rotate-right)) translate(130px, 100px);
    height: 290px;
}

.day-photo--bl {
    grid-area: bl;
    transform: rotate(var(--rotate-right)) translatey(-100px);
    height: 290px;
    z-index: 0;
}
.day-photo--br {
    grid-area: br;
    transform: rotate(var(--rotate-left)) translate(130px, -100px);
    height: 290px;
}
.day-photo--br img {
    object-position: top;
}
/* ---- CARDS ---- */

.day-card--c1 {
    grid-area: c1;
}
.day-card--c2 {
    grid-area: c2;
}
.day-card--c3 {
    grid-area: c3;
}
.day-card--c4 {
    grid-area: c4;
}

.day {
    position: relative;
}
.day-des-1 {
    top: 100px;
    right: -150px;
}
.day-des-2 {
    top: 55%;
    left: -12%;
}
.day-des-3 {
    bottom: 40px;
    right: -160px;
}

/* =========================
   HEADER 
   ========================= */

/* чтобы контент был 1320 по центру на десктопе */
.site-header__top,
.main-navigation {
    max-width: var(--small-container);
    margin: 0 auto;
}
.site-header__top {
    padding: 16px 16px 0 16px;
}
.main-navigation {
    padding: 0 16px 16px 16px;
}
/* --- TOP ROW (desktop) --- */
.site-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
header .right-col {
    max-width: 60%;
    width: 100%;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}
/* logo */
.site-branding .custom-logo-link,
.site-branding a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.site-branding img,
.custom-logo {
    max-height: 80px;
    width: auto;
    height: auto;
    display: block;
    max-width: 250px;
}

/* address block (desktop) */
.site-header__address {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    color: #4F6D5E;
    font-family: var(--font-base);
    font-size: 14px;
    max-width: 260px;
    font-weight: 500;
    font-style: Medium;
    line-height: 1.2;

}
.site-header__address p {
    margin: 0 0 5px;
}
.site-header__address span {
    display: block;
    font-family: var(--font-base);
    font-weight: 500;
    font-style: Medium;
    font-size: 20px;
    color: #4F6D5E;
    line-height: 1.2;
}

/* phone block */
.site-header__phone {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    position: relative;
    color: #4F6D5E;
}

/* иконка трубки */
.site-header__phone::before {
    content: "";
    width: 22px;
    height: 22px;

    transform: translate(-50%);
    flex: 0 0 22px;
    background: currentColor;
    position: absolute;
    left: -20px;
    top: 15px;
    color: #4F6D5E;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79a15.05 15.05 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 1C10.07 21 3 13.93 3 5a1 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")
        center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79a15.05 15.05 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 1C10.07 21 3 13.93 3 5a1 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")
        center / contain no-repeat;
}

/* ссылка телефона (подпись + номер) */
.site-header__phone a {
    /*   display: inline-block; */
    /*   padding-top: 14px;       /* место под подпись */
    font-size: 18px;
    font-weight: 700;
    color: #4F6D5E;
    text-decoration: none;

    font-family: var(--font-base);
    font-weight: 500;
    font-style: Medium;
    font-size: 20px;
    line-height: 1.2;
}

/* --- NAV (desktop row 2) --- */
/* .main-navigation {
    padding: 16px;
} */

/* меню в одну строку */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
}

.main-navigation a {
    display: inline-flex;
    align-items: center;

    font-family: var(--font-base);
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 1.2;

    padding: 10px 12px;
    border-radius: var(--border-radius-small);
    text-decoration: none;
    color: #5E615F;
    transition:
        background 0.12s ease,
        color 0.12s ease,
        border-color 0.12s ease;
    border: 2px dashed transparent;
}

.main-navigation a:hover,
.main-navigation a:focus-visible {
    border: 2px dashed #C97B63;
}
.main-navigation a:hover::after,
.custom-logo-link:hover::after,
.single-gallery__tab:hover::after,
a:has(img)::after,
a[class^=button]::after {
    transform: scaleX(0);
    border: none;
    background: transparent;
}

.main-navigation a:focus,
.custom-logo-link:focus,
.single-gallery__tab:focus,
a:focus {
    outline: none;
}
.main-navigation ul ul {
    border-radius: var(--border-radius-small);
    background: #fff;
}
.site-header__phone {
    margin-left: 30px;
}

.header-des-1 {
    display: none;
}

/* Цены */
.rate-price {
    text-align: center;
}
.rate-title {
    text-align: center;
    margin-bottom: 20px;
}
.rate-subtitle {
    font-size: clamp(18px, 2vw, 24px);
    margin-top: 30px;
}
.rate-price {
    font-weight: 500;
    /* margin: 40px 0 20px; */
    text-align: center;
    font-size: 45px;
    line-height: 1.2;
    vertical-align: middle;
}
.rate-day {
    text-align: center;
    font-weight: 500;
    font-family: var(--font-alt);
    font-size: 20px;
    margin-top: 10px;
}
/* =========================
   RATES (Стоимость проживания)
   ========================= */

/* контейнер 1320 по центру */
.block-rates .rates-grid {
    max-width: var(--small-container);
    margin: 0 auto;
}

/* ---- DESKTOP GRID ---- */

.block-rates .rates-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    align-items: stretch;
    /*     position: relative; */
}

.block-rates .rate-card {
    box-shadow: none;
}

/* центральная — выделенная, приподнятая */
.block-rates .rate-card:nth-child(2) {
    background: var(--color-accent);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.19);
    z-index: 3;
    transform: translateY(-34px);
}

.rate-title {
    /* margin: 60px 0 20px; */
}
.rate-desc {
    margin: 40px 0 20px;
    text-align: center;
}
.rate-desc ul {
    text-align: left;
}
.rate-day {
    position: relative;
}
.rate-day__content {
    margin: 40px 0;
    box-shadow: none;
}
.rate-footer {
    display: flex;
    justify-content: center;
}
.block-rates .block-title {
    margin: 0 0 80px;
}

.price-des-2 {
    top: -100%;
    left: -150px;
    transform: scale(0.8);
}

/* сотрудники */

/* отступы между карточками */
.staff-grid .slick-slide {
    padding: 0 12px;
}
.staff-card {
    min-height: 595px;
}

.slick-btn {
    background: transparent;
    border: none;
    margin: 10px 0;
}

/* Блок услуг */
.block-staff__slick-nav {
    display: flex;
    grid-gap: 10px;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.staff-card {
    box-shadow: var(--shadow-contrast);
    background-color: var(--color-light);
    padding: 23px 17px;
    position: relative;
}

.block-staff {
    position: relative;
}

.staff-card img {
    object-fit: cover;
    height: 280px;
}
.staff-name,
.staff-post,
.staff-desc {
    font-size: 16px;
    color: #371819;
    text-align: center;
}
.staff-name {
    margin: 15px 0 5px;
}
.staff-post,
.staff-desc {
    margin: 5px 0 20px;
    color: rgba(55, 24, 25, 0.7);
}

/* фос */
.block-form-excursion__inner {
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: var(--border-radius-large);
    /*     height: 100%; */
    display: flex;
    justify-content: end;
    padding: 0 250px;
}
.block-form-excursion__content {
    display: flex;
    max-width: 540px;
    flex-direction: column;
    background-repeat: no-repeat;
    background-size: contain;
    padding: 65px 50px;
    margin: 50px 0;
    background: rgba(0, 0, 0, 0.25); /* полупрозрачный фон */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px); /* Safari */

    border-radius: var(--border-radius-large);
}
.block-form-excursion__wrapper {
    color: #fff;
}
.block-form-excursion__title {
    font-family: var(--font-base);
    font-weight: 400;
    font-size: 24px;
    line-height: 1.2;
}
.block-form-excursion__subtitle {
    font-family: var(--font-base);
    font-weight: 400;
    font-size: 16px;
    line-height: 30px;
    line-height: 1.2;
    vertical-align: middle;
}
.block-form-excursion__subtitle span {
    font-family: var(--font-alt);
    font-weight: 400;
    font-size: 30px;
    vertical-align: middle;
}

/* =========================
   ADVANTAGES (как на макете)
   ========================= */

/* контейнер плашек */
.block-advantages__grid {
    max-width: var(--small-container);
    margin: 0 auto;
    padding: 0 20px;

    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* сама плашка */
.block-advantages__item {
    width: max(50%, 970px);
}

/* типографика внутри */
.block-advantages__item-title {
    margin: 30px 0;
    font-weight: 500;
    line-height: 1.25;
}

/* Чередование как на скрине:
   1 розовая справа
   2 светлая слева
   3 розовая справа
   4 светлая слева
   5 розовая справа
   6 светлая слева
*/
.block-advantages__item:nth-child(odd) {
    align-self: flex-end;
    transform: translateX(32px);
}

.block-advantages__item:nth-child(even) {
    align-self: flex-start;
    transform: translateX(-32px);
}

/* =========================
   ADVANTAGES: photos block
   (3 фото с наклонами как на макете)
   ========================= */

.block-advantages__photos {
    max-width: var(--small-container);
    margin: 67px auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 44px;
}

.block-advantages__photo {
    width: 360px;
    height: 290px;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
}

/* Наклоны  */
.block-advantages__photo:nth-child(1) {
    transform: rotate(-9deg) translateY(6px);
}
.block-advantages__photo:nth-child(2) {
    transform: rotate(0deg) translateY(-4px);
}
.block-advantages__photo:nth-child(3) {
    transform: rotate(9deg) translateY(6px);
}

.block-advantages__photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.block-adv__slick-nav {
    display: none;
}
.block-price__slick-nav {
    display: none;
}

/* условия проживания */
/* =========================
   HABITATION (Условия проживания и питания)
   ========================= */

.habitation {
    position: relative;
}

/* Декор */
/* чашка справа от заголовка */
.habitation-des-1 {
    top: 0px; /* подгонка под твой отступ заголовка */
    right: 100px;
    width: 158px;
}

/* еда слева снизу (рядом с нижним фото) */
.habitation-des-2 {
    left: 0px;
    bottom: 0px;
    width: 158px;
}

/* еда слева у нижнего фото */
.habitation-des-2 {
    left: -20px;
    bottom: 20px;
    width: 150px;
    z-index: 5;
}

/* контент */
.habitation__content {
    position: relative;
    z-index: 2;
    display: flex;

    gap: 28px;
}

/* одна “строка” шахматки */
.habitation__col {
    display: flex;
    flex-direction: column;
    row-gap: 28px;
    column-gap: 100px;
    align-items: start;
}

.habitation__col {
    grid-template-columns: 1fr 1fr;
}

/* текстовая карточка: под макет */
.habitation__text.billet-light {
    padding: 34px 34px;
    border-radius: var(--border-radius-large);
}

.habitation__text p {
    margin: 0 0 16px;
    line-height: 1.65;
    color: #5E615F;
}

/* изображения */
.habitation__img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    display: block;
}

/* =========================
   STEPS FLOW — GRID 4x11 (cards+photos+arrows)
   ========================= */

/* 4 колонки как в таблице:
   col1: карточки слева
   col2: картинки слева
   col3: стрелки/карточки справа
   col4: картинки справа
*/
.steps-flow__list {
    list-style: none;
    margin: 0;
    padding: 0;

    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: repeat(11, minmax(70px, auto));
    column-gap: 34px;
    row-gap: 18px;
    align-items: start;
    position: relative;
    z-index: 2;
}

/* ВАЖНО: "растворяем" li, чтобы его дети попали в grid */
.steps-flow__step {
    display: contents;
}

/* ---------- CARD ---------- */
.step-card {
    width: 360px;
    max-width: 100%;
    background: var(--color-accent);
    border-radius: var(--border-radius-small);
    padding: 23px;
    box-shadow: var(--shadow-light);
}

/* ---------- PHOTO ---------- */
.step-media {
    margin: 0;
    width: 300px;
    max-height: 330px;
    /*   max-width: 100%; */
}

.step-media img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    border-radius: var(--border-radius-small);
    box-shadow: var(--shadow-light);
    object-position: top;
}

/* ---------- ARROWS ---------- */
.steps-flow__arrow {
    width: 250px;
    height: auto;
    pointer-events: none;
    user-select: none;
}

/* =========================================================
   РАСКЛАДКА (точно по твоей матрице)
   =========================================================

   | row1  col1 card1 |
   | row2  col2 img1  | col3 arrow1
   | row3  col2 arrow2| col3 card2
   | row4  col4 img2  |
   | row5  col1 card3 |
   | row6  col2 img3  | col3 arrow3
   | row7  col3 card4 |
   | row8  col1 card5 | col2 arrow4 | col3 img4
   | row9  col2 img5  | col3 arrow5
   | row10 col3 card6 |
   | row11 col4 img6  |

   В твоей текущей разметке img5 отдельной нет — поэтому row9 col2
   сделать невозможно без добавления картинки. Я row9 использую
   под “хвост”/продолжение стрелки 4->5 (визуально как на макете).
*/

/* --- STEP 1 --- */
.steps-flow__step:nth-child(1) .step-card {
    grid-column: 1;
    grid-row: 1;
    transform: translateX(22px);
    z-index: 2;
}
.steps-flow__step:nth-child(1) .step-media {
    grid-column: 2;
    grid-row: 2;
    transform: rotate(-6deg);
}
.steps-flow__step:nth-child(1) .step-media img {
    margin-top: -80px;
    margin-left: -150px;
}
.steps-flow__step:nth-child(1) .steps-flow__arrow {
    grid-column: 3;
    grid-row: 2;
    transform: translate(-150px, -36px);
}

/* --- STEP 2 --- */
.steps-flow__step:nth-child(2) .step-card {
    grid-column: 3;
    grid-row: 3;
    justify-self: start;
    margin-top: -60px;
    background: var(--color-light);
    z-index: 2;
}
.steps-flow__step:nth-child(2) .step-media {
    grid-column: 4;
    grid-row: 4;
    transform: rotate(15deg);
    margin-top: -180px;
    margin-left: -210px;
}
.steps-flow__step:nth-child(2) .step-media img {
}

.steps-flow__step:nth-child(2) .steps-flow__arrow {
    grid-column: 2;
    grid-row: 3;
    justify-self: end;
    /*   transform: translateX(10px) translateY(2px); */
}

/* --- STEP 3 --- */
.steps-flow__step:nth-child(3) .step-card {
    grid-column: 1;
    grid-row: 5;
    /*   transform: translate(0px, -250px); */
    margin-top: -250px;
    z-index: 2;
    background: var(--color-light);
}
.steps-flow__step:nth-child(3) .step-media {
    grid-column: 2;
    grid-row: 6;
    /*   transform: translateY(2px); */
}
.steps-flow__step:nth-child(3) .step-media img {
    margin-left: -100px;
    margin-top: -180px;
    object-position: 50% 30%;
    object-fit: contver;
}
.steps-flow__step:nth-child(3) .steps-flow__arrow {
    grid-column: 3;
    grid-row: 6;
    justify-self: start;
    /*   transform: translateX(-8px) translateY(10px); */
    margin-left: -90px;
    margin-top: -200px;
}

/* --- STEP 4 --- */
.steps-flow__step:nth-child(4) .step-card {
    grid-column: 3;
    grid-row: 7;
    justify-self: start;
    /*   transform: translateX(10px); */
    margin-top: -60px;
    z-index: 2;
}
.steps-flow__step:nth-child(4) .step-media {
    grid-column: 3;
    grid-row: 8;
    justify-self: start;
    margin-top: 6px;
}
.steps-flow__step:nth-child(4) .step-media img {
    transform: rotate(-6deg);
    margin-left: -60px;
    margin-top: -50px;
}
.steps-flow__step:nth-child(4) .steps-flow__arrow {
    /* стрелка к шагу 5 */
    grid-column: 2;
    grid-row: 8;
    justify-self: end;
    transform: scale(1, -1) rotate(80deg);
}

/* --- STEP 5 --- */
.steps-flow__step:nth-child(5) .step-card {
    grid-column: 1;
    grid-row: 8;
    z-index: 2;
    /*   transform: translateX(22px); */
    background: var(--color-light);
    margin-top: 150px;
}
.steps-flow__step:nth-child(5) .step-media {
    grid-column: 2;
    grid-row: 9;
}
.steps-flow__step:nth-child(5) .step-media img {
    transform: rotate(10deg);
    margin-top: -20px;
    margin-left: -150px;
}
.steps-flow__step:nth-child(5) .steps-flow__arrow {
    /* стрелка к шагу 6 */
    grid-column: 3;
    grid-row: 9;
    justify-self: start;
    /*   transform: translateX(-6px) translateY(10px); */
    margin-left: -130px;
}

/* --- STEP 6 --- */
.steps-flow__step:nth-child(6) .step-card {
    grid-column: 3;
    grid-row: 10;
    justify-self: start;
    /*   transform: translateX(10px); */
    z-index: 2;
    margin-top: -40px;
}
.steps-flow__step:nth-child(6) .step-media {
    grid-column: 2;
    grid-row: 11;
    margin-top: -40px;
    margin-right: -210px;
    margin-left: 150px;
}
.steps-flow {
    position: relative;
}

.steps-flow__step figure {
    position: relative;
}
.steps-flow__decor--1 {
    top: 5%;
    right: 0;
}
.steps-flow__decor--2 {
    top: 22%;
    transform: scale(0.7) rotate(-10deg);
    right: 5%;
}
.steps-flow__decor--3 {
    top: 50%;
    transform: scale(-0.7, 0.7);
    left: 5%;
}
.steps-flow__decor--4 {
    top: 50%;
    transform: scale(-0.4, 0.4) rotate(40deg);
    left: 45%;
}
.steps-flow__decor--5 {
    top: 27%;
    left: 20%;
    z-index: 3;
    transform: scale(0.7, 0.7);
}
.steps-flow__decor--6 {
    top: 47%;
    right: 15%;
    transform: scale(0.7, 0.7);
}
.steps-flow__decor--7 {
    bottom: 10%;
    right: 5%;
    z-index: 3;
    transform: scale(0.4, 0.4);
}
.steps-flow__decor--8 {
    bottom: -2%;
    right: 20%;
    transform: scale(0.6);
}
.steps-flow__decor--9 {
    bottom: 2%;
    left: 0%;
    z-index: 3;
    transform: scale(0.7);
}
.step-card__num {
    font-family: var(--font-alt);
    font-weight: 500;
    font-size: 28px;
    line-height: 1.5;
    color: #4F6D5E;
}
.step-card__text {
    font-weight: 400;
    font-size: 20px;
    line-height: 1.5;
}

/* форма поможем с переездом */
/* =========================
   FORM COST BLOCK (Поможем с переездом)
   ========================= */

/* Верх: 2 колонки */
.block-form-cost__top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 70px;
    align-items: center;
}

/* -------------------------
   "Полароид" слева
   ------------------------- */
.block-form-cost__img {
    width: 520px;
    max-width: 100%;
    background: var(--color-light);
    border-radius: var(--border-radius-small);
    padding: 16px 16px 46px;
    box-shadow: var(--shadow-light);
    transform: rotate(-6deg);
    transform-origin: center;
    position: relative;
}

.block-form-cost__img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    border-radius: var(--border-radius-small);
}

/* подпись под фото */
.block-form-cost__img > div {
    margin-top: 14px;
    text-align: center;
    font-size: 14px;
    line-height: 1.35;
}

/* -------------------------
   Контент справа
   ------------------------- */

.block-form-cost__subtitle {
    font-family: var(--font-base);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
}

.block-form-cost__subtitle p {
    margin: 0 0 10px;
}
.block-form-cost__subtitle p:last-child {
    margin-bottom: 0;
}

/* обвязка внешней формы (саму форму не стилизуем) */
.block-form-cost__form {
    margin-top: 18px;
}

/* -------------------------
   Нижний блок с пунктирной рамкой
   ------------------------- */
.block-form-cost__bottom {
    margin-top: 0px;
    padding: 62px 22px;
    border-radius: var(--border-radius-large);
    border: 2px dashed #C97B63;
    text-align: center;
    color: rgba(55, 24, 25, 0.62);
}

.block-form-cost__bottom-title {
    font-family: var(--font-alt);
    font-weight: 500;
    line-height: 1.3;
    color: rgba(55, 24, 25, 0.7);
    margin-bottom: 10px;
    font-size: 40px;
}

.block-form-cost__bottom-subtitle {
    line-height: 1.45;
    margin-bottom: 24px;

    font-weight: 500;
    font-size: 20px;
    text-align: center;
}

.block-form-cost__bottom-text {
    max-width: 740px;
    margin: 0 auto;
}

.form-cost-des-1 {
    position: absolute;
    top: 22%;
    left: -230px;
    transform: scale(0.7);
}
.block-form-cost {
    position: relative;
}
.banner-subtitle {
    text-align: center;
}

/* книжная полка */

/* =========================
   BOOKSHELF MENU (fixed)
   ========================= */

.bookshelf__inner {
    position: relative;
    height: 685px;
}

/* Полка */
.bookshelf__bg {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;

    z-index: 0;
}

/* Список меню поверх полки */
.bookshelf__list {
    list-style: none;
    margin: 0;
    padding: 0;

    position: relative;
    z-index: 2;
    height: 100%;
}

/* Каждый пункт — “книга” (вертикальный корешок) */

.bookshelf__list > li {
    position: absolute;
    bottom: 400px;
    /* размер книги как на макете (подгони при желании) */

    margin: 0 0 -135px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

    transform-origin: bottom center;
    transition:
        transform 0.22s ease,
        filter 0.22s ease;
    filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.16));
}

/* кликабельная зона + текст */
.bookshelf__list > li > a,
.bookshelf__list .menu-current-text {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;

    align-items: center;
    justify-content: center;
    background: transparent;
    /* вертикальный текст как на корешке */
    writing-mode: vertical-rl;
    transform: rotate(180deg);

    font-family: var(--font-alt);
    font-weight: 500;
    font-size: 24px;
    line-height: 1;
    text-decoration: none;

    /* чтобы текст был читаем на любой картинке */
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}
.bookshelf__list > li > a:focus,
.bookshelf__list > li > a:focus::after,
.bookshelf__list > li > a:focus-visible,
.bookshelf__list > li > a:focus-visible::after,
.bookshelf__list > li > a:focus-within,
.bookshelf__list > li > a:focus-within::after,
.bookshelf__list .menu-current-text:focus,
.bookshelf__list .menu-current-text:focus::after,
.bookshelf__list .menu-current-text:focus-visible,
.bookshelf__list .menu-current-text:focus-visible::after,
.bookshelf__list .menu-current-text:focus-within,
.bookshelf__list .menu-current-text:focus-within::after {
    background: transparent;
    outline: none;
    border: none;
    content: none;
}
/* Hover/focus — чуть “вытянуть” книгу */
.bookshelf__list > li:hover,
.bookshelf__list > li:focus-within {
    transform: translateY(-12px) rotate(var(--rot, 0deg));
    filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.22));
}

.bookshelf__list > li > a:focus-visible {
    outline: none;
}
.bookshelf__list > li:focus-within {
    box-shadow: 0 0 0 2px rgba(242, 156, 153, 0.55);
    border-radius: 10px;
}

/* Активный пункт */
/* .bookshelf__list > li.current-menu-item,
.bookshelf__list > li.current_page_item {
    transform: translateY(-8px) rotate(var(--rot, 0deg));
    filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.24));
} */

/* =========================
   POSITIONS (desktop)
   Позиции привязаны к полке: bottom примерно на верх доски.
   Если нужно 1-в-1 — подвинь bottom на 5–15px.
   ========================= */

/* 01 green */
.bookshelf__list > li:nth-child(1) {
    left: 90px;
    height: 250px;
    width: 105px;
    height: 342px;
    background-image: url("/wp-content/themes/dptheme/assets/img/bookshelf-1.svg");
}

/* 02 pink */
.bookshelf__list > li:nth-child(2) {
    left: 225px;
    height: 310px;

    width: 64px;
    height: 415px;
    background-image: url("/wp-content/themes/dptheme/assets/img/bookshelf-2.svg");
}

/* 03 white */
.bookshelf__list > li:nth-child(3) {
    left: 305px;
    width: 113px;
    height: 386px;
    background-image: url("/wp-content/themes/dptheme/assets/img/bookshelf-3.svg");
}

/* 04 brown */
.bookshelf__list > li:nth-child(4) {
    left: 420px;
    height: 280px;
    width: 132px;
    height: 267px;
    background-image: url("/wp-content/themes/dptheme/assets/img/bookshelf-4.svg");
}

/* 05 salmon */
.bookshelf__list > li:nth-child(5) {
    left: 560px;
    height: 300px;
    width: 101px;
    height: 307px;
    background-image: url("/wp-content/themes/dptheme/assets/img/bookshelf-5.svg");
}

/* 06 blue */
.bookshelf__list > li:nth-child(6) {
    left: 655px;
    height: 265px;
    width: 113px;
    height: 218px;
    background-image: url("/wp-content/themes/dptheme/assets/img/bookshelf-6.svg");
}

.bookshelf-note {
    text-align: center;
}
/* =========================
   MOBILE (< 992px) — книги горизонтально
   ========================= */

.banner__form {
    margin: 0 auto;
    max-width: 500px;
}

/* истории посетителей */
.history-archive-grid {
    display: flex;
    flex-direction: column;
    grid-gap: 40px;
}
.history-card {
    display: flex;
    grid-gap: 40px;
    align-items: center;

    align-items: center;

    border-radius: var(--border-radius-large);
    padding: 40px;
    position: relative;
}
.history-card img {
    max-width: 250px;
    max-height: 250px;
    object-position: center;
    object-fit: cover;
    border-radius: 50%;
}
.history-archive-grid .history-card:nth-child(odd) {
    box-shadow: var(--shadow-light);
    background: var(--color-accent);
}
.history-archive-grid .history-card:nth-child(even) {
    background: var(--color-light);
}
.history-single__meta-name {
    font-weight: 500;
    font-size: 24px;
    line-height: 1.54;
}
.history-single__meta-job {
    font-size: 16px;
    margin: 10px 0;
}
.history-single__meta-hobby {
    font-size: 18px;
    margin: 10px 0;
}

.archive-history-des-1 {
    top: 0;
    right: 0;
}
.archive-history {
    position: relative;
}
.archive-history .page-title {
    margin: 40px 0;
}
.archive-history-des-2 {
    top: 20%;
    left: -50px;
}
.archive-history-des-3 {
    top: 30%;
    right: -50px;
    transform: scale(-0.8, 0.8);
}

/* блок с историями постояльцев */
/* =========================
   HISTORY LIST (teasers, no photo)
   ========================= */

.history-teaser__more-btn {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.history-teaser__more-btn a {
    display: block;
    max-width: 350px;
    text-align: center;
}

/* список карточек */
.block-history-list__grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* карточка */
.history-teaser {
    border-radius: var(--border-radius-large);
    padding: 40px;
    position: relative;
}

/* чередование, как в макете */
.block-history-list__grid .history-teaser:nth-child(odd) {
    background: var(--color-accent);
    box-shadow: var(--shadow-light);
}
.block-history-list__grid .history-teaser:nth-child(even) {
    background: var(--color-light);
}

/* ФИО */
.history-teaser__fio {
    font-weight: 500;
    font-size: 24px;
    line-height: 1.54;
}

/* ссылка "Читать историю" */
.history-teaser__more {
    transition: opacity 0.2s ease;
}

/* блок рассказать историю */

/* =========================
   TELL STORY BLOCK
   ========================= */

/* Внешний контейнер секции (рамка как на макете) */
.block-tell-story {
    border: var(--border-dashed);
    border-radius: var(--border-radius-large);
    margin: 40px auto;
}

.block-tell-story__inner {
    padding: 10px;
}

/* Кнопки по центру */
.block-tell-story__btns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 0 auto;
    flex-wrap: wrap;
}

/* обе кнопки */

/* Дисклеймер внизу */
.block-tell-story__disclaime {
    font-size: 13px;
    line-height: 1.5;
}

.tell-des-1,
.tell-des-2 {
    transform: scale(0.9);
}

.footer-map {
    text-align: center;
}

/* small-container у тебя уже есть, но подстрахуем */
.footer-map.small-container {
    max-width: var(--small-container);
    margin: 0 auto;
    padding: 0 10px;
}

.footer-map .section-header {
    margin: 0;
}

/* адрес под заголовком */
.footer-map .text-header {
    margin: 10px 0 18px;
    line-height: 1.3;
}

/* кнопка как на макете */
.footer-map__btn {
    margin: 0 auto 34px;
    padding: 14px 22px;
}

/* блок карты с пунктирной рамкой */
.footer-map__map {
    width: 100%;
    max-width: 1100px; /* как на макете — карта не на всю ширину контейнера */
    margin: 0 auto;

    border: 2px dashed #C97B63;
    border-radius: var(--border-radius-large);
    padding: 22px;

    /* чтобы iframe обрезался по скруглениям */
    overflow: hidden;
    background: transparent;
}

/* iframe карты — на всю ширину, фикс высота */
.footer-map__map iframe {
    display: block;
    width: 100%;
    height: 299px;
    border: 0;
    border-radius: calc(var(--border-radius-large) - 6px);
}

/* =========================
   RESPONSIVE
   ========================= */

/* подвал */

/* =========================
   FOOTER (layout like mock)
   ========================= */

.site-footer__container {
    margin-bottom: 0;
}

/* TOP GRID */
.site-footer__top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.7fr 1fr;
    /* logo | legal | menu | contacts | polaroids */
    gap: 20px;
    align-items: start;
}

/* LEGAL TEXTS (left column under/near logo) */
.site-footer__legal {
    font-size: 12px;
}
.footer-legal {
    text-align: justify;
    margin-bottom: 10px;
}
.footer-legal--req {
    margin-top: 6px;
}

/* MENU */

.footer-menu__list {
    list-style: none;
}
.footer-menu__list a {
    font-size: 18px;
    line-height: 1.2;
}

/* CONTACTS */
.site-footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.footer-contact__block {
    display: flex;
    grid-gap: 10px;

    align-items: center;
}
.footer-contact__block button {
    box-shadow: none;
}

.footer-contact--phone {
    font-family: var(--font-alt);
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
}

.footer-contact--address {
    line-height: 1.5;
    font-weight: 400;
    font-style: Regular;
    font-size: 20px;
}
.footer-contact--address p + p{
    margin: 3px;
}

/* Yandex rating */
.footer-yandex {
    margin-top: 8px;
}
.footer-yandex * {
    max-width: 100%;
}

/* POLAROIDS */
.site-footer__polaroids {
    grid-column: 5;
    position: relative;
    min-height: 210px;
}

.footer-polaroid {
    position: absolute;
    background: #fff;
    padding: 10px 10px 40px;
    border-radius: var(--border-radius-small);
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(0, 0, 0, 0.06);
    width: 150px;
    height: 180px;
    overflow: hidden;
}

.footer-polaroid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    object-position: top;
}

/* positions/tilts like mock (подгоняй чуть-чуть при желании) */
.footer-polaroid.is-1 {
    right: 130px;
    top: -15px;
    transform: rotate(4deg);
    z-index: 2;
}
.footer-polaroid.is-2 {
    right: 20px;
    top: 80px;
    transform: rotate(25deg);
    z-index: 3;
}

/* BOTTOM */
.site-footer__bottom {
    margin-top: 22px;
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.footer-links a {
    font-size: 14px;
}
.footer-des-1 {
    bottom: 35%;
    left: 63%;
}
footer {
    position: relative;
}

/* =========================
   FOOTER mobile like mock
   ========================= */

/* статьи */
/* =========================
   ARCHIVE: ARTICLES
   ========================= */

.archive-article .archive-description {
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.75;
}

/* Grid */
.article-archive-grid {
    max-width: var(--small-container);
    margin: 0 auto;
    padding: 0 20px;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

/* Card */
.article-card {
    background: var(--color-light);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-contrast);
    overflow: hidden;

    display: flex;
    flex-direction: column;
    min-height: 100%;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

/* Thumbnail */
.article-card__thumb {
    display: block;
    position: relative;
    overflow: hidden;
}

.article-card__thumb img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.35s ease;
}

.article-card:hover .article-card__thumb img {
    transform: scale(1.04);
}

/* Content */
.article-card__content {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* Title */
.article-card__title {
    margin: 0;
    font-family: var(--font-alt);
    font-weight: 500;
    line-height: 0.9;
}


/* Excerpt */
.article-card__excerpt {
    line-height: 1.3;
    font-size: 16px;
    flex: 1;
}

.article-card__excerpt p {
    margin: 0;
}

/* More link as pill */
.article-card__more {
    align-self: flex-start;
    display: inline-flex;
}

/* =========================
   Adaptive
   ========================= */

/* =========================
   HOME BLOCK: ARTICLES
   (based on archive styles)
   ========================= */

/* Grid — как у архива */
.block-articles__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

/* Карточка */
.block-articles__card {
    background: var(--color-light);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-contrast);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

/* Thumbnail */
.block-articles__thumb {
    display: block;
    position: relative;
    overflow: hidden;
}

.block-articles__thumb-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.35s ease;
}

.block-articles__card:hover .block-articles__thumb-img {
    transform: scale(1.04);
}

/* Content */
.block-articles__content {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* Title */
.block-articles__title {
    margin: 0;
    font-family: var(--font-alt);
    font-weight: 500;
    line-height: 1.3;
}

.block-articles__title a {
    text-decoration: none;
    color: inherit;
}

/* Excerpt */
.block-articles__excerpt {
    font-size: 16px;
    line-height: 1.3;
    flex: 1;
    opacity: 0.85;
}

/* Footer / button */
.block-articles__footer {
    margin-top: 6px;
}

.block-articles__btn {
    align-self: flex-start;
    display: inline-flex;
}

/* =========================
   ARCHIVE: SERVICES
   ========================= */

/* Grid */
.service-archive-grid {
    max-width: var(--small-container);
    margin: 0 auto;
    padding: 0 20px;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

/* Card */
.service-card {
    background: var(--color-light);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-contrast);
    overflow: hidden;

    display: flex;
    flex-direction: column;
    min-height: 100%;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.service-card__thumb img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.35s ease;
}

.service-card:hover .service-card__thumb img {
    transform: scale(1.04);
}

/* Content */
.service-card__content {
    padding: 18px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* Title */
.service-card__title {
    margin: 10px 0;
    font-weight: 500;
}

/* Excerpt */
.service-card__excerpt {
    line-height: 1.3;
    font-size: 16px;
}

/* More link (pill) */
.service-card__more {
    align-self: flex-start;
    display: inline-flex;
}
.service-card__more::after {
    display: none !important;
}
/* Пагинация */
.pagination {
    margin-top: 32px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    margin: 0 3px;
    min-width: 33px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 14px;
    text-decoration: none;
    color: #343A40;
    background: #f2f3f8;
}
.pagination .page-numbers:hover {
    text-decoration: none;
    background: var(--color-accent);
}
.pagination .page-numbers::after {
    display: none;
}
.pagination .page-numbers.current {
    background: var(--color-accent);
    color: #343A40;
    font-weight: 600;
}
/* =========================
   Adaptive
   ========================= */

/* тестовые стили на single*/
.service-single__thumb,
.article-single__thumb,
.page .post-thumbnail {
    float: right;
    margin-bottom: 20px;
    margin-left: 20px;
    padding-right: 20px;
    max-width: 550px;
}
.service-single__thumb img,
.article-single__thumb img,
.page .post-thumbnail img {
    aspect-ratio: 4/3;
    object-fit: cover;
}
.service-single .entry-content h2,
.service-single .entry-content h3,
.article-single .entry-content h2,
.article-single .entry-content h3,
.has-post-thumbnail .entry-content h2,
.has-post-thumbnail .entry-content h3 {
    clear: none;
}
.service-detail__container {
    max-width: var(--small-container);
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero */
.service-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 26px;
    align-items: stretch;

    background: var(--color-light);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-contrast);
    overflow: hidden;

    padding: 26px;
}

.service-hero__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--color-accent);
    font-size: 12px;
}

.service-hero__title {
    margin: 12px 0 10px;
    font-family: var(--font-alt);
    font-weight: 500;
    font-size: 40px;
    line-height: 1.15;
    color: rgba(55, 24, 25, 0.72);
}

.service-hero__lead {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(55, 24, 25, 0.55);
}

.service-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.service-hero__media {
    border-radius: var(--border-radius-large);
    background: linear-gradient(180deg, rgba(250, 234, 236, 0.9), rgba(246, 245, 244, 1));
}

/* Buttons */
.service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    color: rgba(55, 24, 25, 0.62);
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}
.service-btn:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}
.service-btn:focus-visible {
    /* outline: 2px solid rgba(242, 156, 153, 0.55); */
    /* outline-offset: 4px; */
}

.service-btn--primary {
    background: var(--color-accent);
    box-shadow: var(--shadow-contrast);
}
.service-btn--ghost {
    background: transparent;
    border: 1px solid rgba(242, 156, 153, 0.55);
}
.service-btn--full {
    width: 100%;
}

/* Facts */
.service-facts {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.service-fact {
    background: var(--color-light);
    border-radius: var(--border-radius-small);
    box-shadow: var(--shadow-contrast);
    padding: 14px 14px 12px;
}

.service-fact__title {
    font-size: 12px;
    line-height: 1.2;
    color: rgba(55, 24, 25, 0.45);
    margin-bottom: 6px;
}

.service-fact__value {
    font-family: var(--font-alt);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.25;
    color: rgba(55, 24, 25, 0.7);
}

/* Section */
.service-section {
    margin-top: 34px;
}

.service-section__title {
    margin: 0 0 16px;
    font-family: var(--font-alt);
    font-weight: 500;
    font-size: 28px;
    line-height: 1.2;
    color: rgba(55, 24, 25, 0.7);
}

/* Cards */
.service-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    background: var(--color-light);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-contrast);
    padding: 18px;
}

.service-card__title {
    margin: 0 0 10px;
    font-family: var(--font-alt);
    font-weight: 500;
    font-size: 18px;
    line-height: 1.2;
    color: rgba(55, 24, 25, 0.7);
}

.service-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(55, 24, 25, 0.55);
}

.service-list li {
    position: relative;
    padding-left: 18px;
}
.service-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(242, 156, 153, 0.65);
}

.taxonomy-service-category {
    margin-bottom: 50px;
}

/* Badges */
.service-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-badge {
    background: var(--color-accent);
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.1;
    box-shadow: var(--shadow-contrast);
}

/* Steps */
.service-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.service-step {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: start;

    background: var(--color-light);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-contrast);
    padding: 14px 16px;
}

.service-step__num {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--color-accent);
    display: grid;
    place-items: center;

    font-family: var(--font-alt);
    font-weight: 600;
    color: rgba(55, 24, 25, 0.7);
}

.service-step__title {
    font-family: var(--font-alt);
    font-weight: 500;
    color: rgba(55, 24, 25, 0.7);
    margin-bottom: 4px;
}

.service-step__text {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(55, 24, 25, 0.55);
}

/* Price */
.service-price {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
    align-items: start;
}

.service-price__note {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(55, 24, 25, 0.55);
}

.service-price__grid {
    display: grid;
    gap: 12px;
}

.service-price__item {
    background: var(--color-light);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-contrast);
    padding: 14px 16px;
}

.service-price__name {
    font-size: 12px;
    color: rgba(55, 24, 25, 0.45);
    margin-bottom: 6px;
}

.service-price__value {
    font-family: var(--font-alt);
    font-weight: 500;
    color: rgba(55, 24, 25, 0.7);
}

.service-callout {
    background: var(--color-accent);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-contrast);
    padding: 18px;
}

.service-callout__title {
    font-family: var(--font-alt);
    font-weight: 600;
    color: rgba(55, 24, 25, 0.7);
    margin-bottom: 8px;
}

.service-callout__text {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(55, 24, 25, 0.55);
    margin-bottom: 12px;
}

.service-callout__hint {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(55, 24, 25, 0.45);
}

/* FAQ */
.service-faq {
    display: grid;
    gap: 10px;
}

.service-faq__item {
    background: var(--color-light);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-contrast);
    padding: 14px 16px;
}

.service-faq__q {
    cursor: pointer;
    font-family: var(--font-alt);
    font-weight: 500;
    color: rgba(55, 24, 25, 0.7);
}

.service-faq__a {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(55, 24, 25, 0.55);
}

/* =========================
   Adaptive
   ========================= */

/* хлебные крошки */
/* =========================
   Breadcrumbs (like mock)
   ========================= */

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px; /* расстояние между пунктами */
    flex-wrap: wrap;
    max-width: 1285px;
    margin: 0 auto;
    padding: 0 10px;
    font-family: var(--font-alt);
    font-weight: 400;
    font-size: 28px;
    line-height: 1.2;
    font-size: 14px;
}

/* ссылка как обычный текст */
.breadcrumbs a {
    color: inherit;
    text-decoration: none;
    font-size: inherit;
    font-weight: inherit;
}

/* убираем "/" и делаем точку */
.breadcrumbs > span:first-of-type {
    font-size: 0; /* скрывает "/" */
    line-height: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #C97B63; /* можно var(--color-accent) не подойдёт, он слишком светлый */
    display: inline-block;
}
.breadcrumbs > span:last-child {
    font-weight: 600;
}
/* адаптив */

/* =========================
   SINGLE: HISTORY (variant 2)
   ========================= */

/* Header как “обложка” */
.history-single .entry-header {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 3fr;
}

/* Фото — широкое, с мягкой тенью */
.history-single__thumb {
    border-radius: var(--border-radius-large);
    overflow: hidden;

    box-shadow: var(--shadow-contrast);
}

.history-single__thumb img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* Мета — чипсы в одну/две строки */
.history-single__meta {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 2px 0;
}

.history-single__meta-row {
    border-radius: var(--border-radius-small);
    background: var(--color-light);
    padding: 10px 14px;
    font-weight: 500;
}

.history-single__meta-value {
    font-family: var(--font-alt);
    line-height: 1.1;
    font-weight: 400;
}

/* Контент — “статья” */
.history-single .entry-content {
    margin-top: 50px;

    background: #fff;
}

/* =========================
   Adaptive
   ========================= */

/* галерея блок */
/* =========================
   BLOCK: GALLERY (2 rows marquee)
   ========================= */

.block-gallery {
    padding: var(--section-padding-desktop) 0;
}

.block-gallery__title {
    text-align: center;
    font-family: var(--font-alt);
    font-weight: 500;
    font-size: 45px;
    line-height: 1.2;
    color: rgba(55, 24, 25, 0.7);
    margin: 0 0 10px;
}

.block-gallery__subtitle {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 26px;
    padding: 0 16px;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(55, 24, 25, 0.55);
}

/* общий viewport для 2 рядов */
.block-gallery__rows {
    max-width: var(--small-container);
    margin: 0 auto;
    padding: 0 20px;

    display: grid;
    gap: 18px;

    overflow: hidden; /* прячем выезжающие элементы */
}

/* сам “трек” — ряд */
.block-gallery__row {
    display: flex;
    align-items: center;
    gap: 18px;
    will-change: transform;

    /* анимация стартует только когда JS добавит .is-ready */
    animation: none;
}

/* верхний ряд влево */
.block-gallery__row--top.is-ready {
    animation: gallery-marquee-left var(--duration, 32s) linear infinite;
}

/* нижний ряд вправо */
.block-gallery__row--bottom.is-ready {
    animation: gallery-marquee-right var(--duration, 34s) linear infinite;
}

/* карточка фото */
.block-gallery__item {
    flex: 0 0 auto;
    width: clamp(160px, 18vw, 240px); /* на 1320px получается ~5 фото */
    aspect-ratio: 4 / 3;
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-contrast);
    background: var(--color-light);
}

.block-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* keyframes: JS выставляет --marquee-distance в px */
@keyframes gallery-marquee-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-1 * var(--marquee-distance, 1000px)));
    }
}

@keyframes gallery-marquee-right {
    from {
        transform: translateX(calc(-1 * var(--marquee-distance, 1000px)));
    }
    to {
        transform: translateX(0);
    }
}

/* кнопка снизу (у тебя уже класс history-teaser__more-btn) — чуть подружим с блоком */
.block-gallery .history-teaser__more-btn {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

/* Accessibility: если пользователь отключил анимации */
@media (prefers-reduced-motion: reduce) {
    .block-gallery__row--top.is-ready,
    .block-gallery__row--bottom.is-ready {
        animation: none;
        transform: none;
    }
}

/* =========================
   Adaptive
   ========================= */

/* галерея */

.single-gallery__top {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.single-gallery__tab {
    font-size: 16px;
    padding: 10px 12px;
    border-radius: var(--border-radius-small);
    color: #371819;
    transition:
        background 0.12s ease,
        color 0.12s ease,
        border-color 0.12s ease;
    border: 2px dashed transparent;
}

.single-gallery__tab:hover {
    border: 2px dashed #C97B63;
}

.single-gallery__tab.is-active {
    border: 2px dashed #C97B63;
}

/* видео, ломаем стили плагина */
[id^="tsvg-section-"] [class*="tsvg-fancy-block-"] figure,
[id^="tsvg-section-"] .tsvg-fancy-blocks-list li {
    height: 240px !important;
}

.title {
    position: relative;
}
.title img {
    top: -20px;
    transform: scale(0.8);
}

/* контакты */
/* =========================
   CONTACTS BLOCK (like mock)
   uses :root vars from theme
   ========================= */

/* layout */
.contacts-block__grid {
    max-width: var(--small-container);
    margin: 0 auto;
    padding: 0 20px;

    display: grid;
    grid-template-columns: 1.45fr 0.7fr; /* карта шире, контакты уже */
    gap: 46px;
    align-items: center;
}

/* MAP */
.contacts-block__map {
    border-radius: var(--border-radius-large);
    overflow: hidden;
    background: var(--color-light);
}

/* iframe embed inside */
.contacts-block__map iframe {
    width: 100% !important;
    height: 299px !important;
    border: 0 !important;
    display: block;
    border-radius: var(--border-radius-large);
}

/* INFO (right) */
.contacts-block__info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* lines */
.contacts-block__line {
    font-family: var(--font-alt);
}

/* SOCIALS */
.contacts-block__social {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.contacts-block__btn {
    max-width: 250px;
}
.contacts-block__soc {
    width: 40px;
    height: 40px;
    border-radius: 999px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #535857;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        opacity 0.18s ease;
    text-decoration: none !important;
}
.contacts-block__soc::after {
    display: none !important;
}
.contacts-block__soc.contacts-block__soc--max {
    border-radius: 10px;
}
/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .contacts-block__btn,
    .contacts-block__soc {
        transition: none;
    }
}

/* popup */
/* =========================
   COOKIE POPUP
   ========================= */

.cookie-popup {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 18px;
    z-index: 10;

    display: flex;
    justify-content: center;
    padding: 0 16px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;
}

.cookie-popup.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cookie-popup__inner {
    width: min(95vw, 1320px);
    border-radius: var(--border-radius-small);
    background: rgba(246, 245, 244, 0.62);
    border: 1px solid rgba(242, 156, 153, 0.25);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.cookie-popup__text {
    font-size: 14px;
    line-height: 1.45;
    color: rgba(55, 24, 25, 1);
}

.cookie-popup__link {
    color: rgba(55, 24, 25, 1);
    text-decoration: none;
    text-underline-offset: 5px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.cookie-popup__link:hover {
    text-underline-offset: 3px;
}

.cookie-popup__btn {
    flex: 0 0 auto;
    cursor: pointer;

    font-family: var(--font-alt);
    font-size: 14px;
    font-weight: 500;
    border: 2px dashed transparent;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--color-accent);
}

.cookie-popup__btn:hover {
    border: 2px dashed var(--color-text);
}

.cookie-popup__btn:active {
    border: 2px dashed var(--color-text);
}

.cookie-popup__btn:focus-visible,
.cookie-popup__link:focus-visible {
    outline: none;
    border-radius: 999px;
}

/* если пользователь попросил уменьшить анимации */
@media (prefers-reduced-motion: reduce) {
    .cookie-popup {
        transition: none;
    }
    .cookie-popup__btn,
    .cookie-popup__link {
        transition: none;
    }
}

/* мелкие дополнения: */
.block-services__title a,
.block-articles__title a {
    font-size: 20px;
}
.block-services__title {
    margin: 15px 0 5px;
}
.block-services__footer a {
    font-size: 16px;
    font-weight: 400;
}
.bookshelf__inner a:hover::after {
    transform: scaleX(0);
}

.block-widget {
    margin-top: 50px;
    margin-bottom: 50px;
}
.block-widget__wrapper {
    display: flex;
    gap: 60px;
}
.block-widget-left {
    max-width: 460px;
    border-radius: var(--border-radius-large);
    padding: 20px;
    border: 2px dashed #C97B63;
    width: 100%;
}
.block-widget-left #vk_groups {
    width: 100% !important;
}
.block-widget-left #vk_groups iframe {
    width: 100% !important;
}
.block-widget-left p {
    display: none;
}
.block-widget-right {
 border-radius: var(--border-radius-large);
 background: #FAEAEC;
padding: 20px;
position: relative;
}
.block-widget-right br {
    display: block;
}
.block-widget-right__img {
    position: absolute;
    right: 20px;
    top: 45%;
    transform: translateY(-50%);
    width: 110px;
}
@media (max-width: 1640px) {
    .day-des-3,
    .day-des-1 {
        display: none;
    }
}
@media (max-width: 1440px) {
    .servise-des-1 {
        top: 18%;
        left: -5%;
        transform: scale(0.5);
    }
    .servise-des-2 {
        top: auto;
        bottom: 0%;
        right: -10%;
        transform: scale(0.5);
    }
    .servise-des-3 {
        display: none;
    }
    .day-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "c1"
            "c2"
            "c3"
            "c4";
        gap: 16px 0;
    }

    .day-photo {
        transform: none !important;
        border-radius: var(--border-radius-large);
    }
    .day-photo--tl,
    .day-photo--tr,
    .day-photo--bl,
    .day-photo--br {
        height: 0px;
    }
}

@media (max-width: 1320px) {
    .bookshelf__list > li{
        filter: none;
    }
    .block-advantages__photos {
        max-width: 900px;
    }
    .steps-flow__list {
        grid-template-columns: repeat(4, minmax(70px, auto));
    }

    .steps-flow__decor--1 {
        top: 5%;
        right: 0;
    }
    .steps-flow__decor--2 {
        top: 22%;
    }
    .steps-flow__decor--5 {
        top: 25%;
    }
    .steps-flow__decor--6 {
        display: none;
    }
    .steps-flow__decor--7 {
        right: 4%;
    }
    .steps-flow__decor--8 {
        display: none;
    }
    .steps-flow__decor--9 {
        transform: scale(0.4);
    }
    .steps-flow__step:nth-child(2) .step-media {
        margin-top: -100px;
    }

    .bookshelf__bg {
        display: none;
    }
    .bookshelf__inner {
        height: 650px;
        max-width: 100vw;
        overflow: hidden;
    }

    .bookshelf__list > li > a {
        font-size: 16px;
        line-height: 1.2;
    }
    .bookshelf__list > li:hover,
    .bookshelf__list > li:focus-within {
        transform: rotate(90deg) translatex(-5px) scale(0.8) !important;
        filter: none;
    }

    .bookshelf__list > li:nth-child(1) {
        width: 110px;
        height: 363px;
        top: 0;
        left: 0;
        position: absolute;
        bottom: auto;
    }

    .bookshelf__list > li:nth-child(2) {
        bottom: auto;
        height: 421px;
        top: 17px;
        left: 20px;
        position: absolute;
        width: 65px;
    }

    .bookshelf__list > li:nth-child(3) {
        top: 130px;
        left: 25px;
        position: absolute;
        bottom: auto;
        width: 113px;
        height: 386px;
    }

    .bookshelf__list > li:nth-child(4) {
        left: 0;
        top: 345px;
        bottom: auto;
        width: 132px;
        height: 267px;
    }

    .bookshelf__list > li:nth-child(5) {
        left: 60px;
        bottom: auto;
        top: 405px;
        width: 101px;
        height: 307px;
    }

    .bookshelf__list > li:nth-child(6) {
        left: 0px;
        bottom: auto;
        top: 575px;
        width: 113px;
        height: 218px;
    }

    #menu-knizhnaja-polka {
        margin: 20px auto;
        max-width: 320px;
    }

    .bookshelf-block {
        margin: 20px 0 40px;
    }
    /* .bookshelf__list > li {
        left: auto;
        top: auto;
        bottom: auto;
        margin: 0;
        filter: none;
    } */
    .bookshelf__list > li {
        margin-top: -280px;
        margin-left: -70px;
        transform: scale(0.8) rotate(90deg);
    }
}

@media (max-width: 1200px) {
    .polaroids {
        display: none;
    }
    .banner-inner {
        grid-template-columns: 1fr;
    }
    .banner {
        margin-top: 150px;
    }
    .metrics {
        grid-template-columns: 1fr;
        grid-gap: 30px;
        padding: 20px;
    }
    .metric-num {
        font-size: 30px;
    }
    .section-header {
        font-size: 40px;
    }

    .site-header__phone span {
        font-size: 14px;
    }
    .site-header__btn button {
        padding: 10px;
    }
    .block-tell-story,
    .block-form-cost__bottom {
        margin: 10px;
    }

    .about-title,
    .steps-flow__title {
        margin-bottom: 140px;
    }

    .block-advantages__photos,
    .block-advantages__grid {
        max-width: 95vw;
    }
    .rate-title,
    .block-services__titl,
    .block-staff .block-title {
        margin: 60px 0 20px;
    }
    .habitation-des-1 {
        right: 30px;
    }
    .footer-map__title .section-header {
        margin: 0;
    }
    .footer-contact__block {
        flex-direction: column;
    }
    .rate-day__content {
        margin: 40px 0;
    }
    .service-single__thumb,
    .article-single__thumb {
        width: 50%;
    }
    .block-widget-right__img {
        display: none;
    }
}

@media (max-width: 1100px) {
    .fan {
        height: 420px;
    }
    .fan-card--big {
        left: 660px;
    }
}

@media (min-width: 992px) {
    .menu-toggle {
        display: none;
    }

    .main-navigation ul {
        display: flex;
    }
}

@media (max-width: 992px) {
    #primary-menu a {

    max-width: 100%;
}
    header {
        padding: 10px 0;
    }
    .header-btn.button-accent {
        display: none;
    }
    .main-navigation .menu-current-text {
        width: 200px;
        display: inline-flex;
        align-items: center;
        font-weight: 400;
        font-size: 16px;
        line-height: 1.2;
        padding: 10px 12px;
        color: #371819;
    }

    .main-navigation ul > li:has(.menu-current-text) {
        border: 2px dashed #C97B63;
        border-radius: var(--border-radius-small);
    }
    .main-navigation .menu-item-has-children {
        border: none !important;
    }
    .main-navigation ul {
        margin: 5px 0;
    }
    .block-history-list__grid {
        gap: 24px;
    }
    .footer-des-1 {
        bottom: 35%;
        left: 63%;
    }
    .history-teaser {
        padding: 28px;
        border-radius: 22px;
    }

    .history-teaser__fio {
        font-size: 20px;
        line-height: 1.35;
    }

    .history-teaser__excerpt {
        font-size: 14px;
        margin-bottom: 14px;
    }

    .steps-flow .design-img,
    .steps-flow .step-media,
    .steps-flow .steps-flow__arrow {
        display: none;
    }
    .steps-flow__list {
        display: flex;
        flex-direction: column;
        align-items: normal;
    }
    .steps-flow .step-card {
        width: 100vw;
        margin: 0;
        transform: none;
        background: var(--color-accent);
    }
    .steps-flow .steps-flow__step:nth-child(even) .step-card {
        background: var(--color-light);
    }
    .steps-flow {
        padding: 10px;
    }
    .step-card {
        box-shadow: none;
        position: relative;
    }

    .step-card:before {
        content: "";
        background: url("/wp-content/themes/dptheme/assets/img/arrow-mobile-2.png");
        background-position: contain;
        background-size: center;
        width: 50px;
        height: 150px;
        background-repeat: no-repeat;
        position: absolute;
        top: -50px;
        left: -20px;
        display: block;
    }
    .steps-flow .steps-flow__step:first-child .step-card:before {
        content: none;
    }
    .steps-flow .steps-flow__step:nth-child(even) .step-card:before {
        top: -40px;
        right: -10px;
        left: auto;
        background: url("/wp-content/themes/dptheme/assets/img/arrow-mobile.png");
        background-position: contain;
        background-size: center;
        width: 50px;
        height: 150px;
        background-repeat: no-repeat;
        position: absolute;

        display: block;
    }

    .block-form-cost.small-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .block-form-cost__title.section-header {
        font-size: 28px;
        letter-spacing: normal;
        margin-bottom: 18px;
    }

    .block-form-cost__top {
        grid-template-columns: 1fr;
        row-gap: 85px;
    }

    .block-form-cost__img {
        width: 100%;
        transform: rotate(-4deg);
        padding: 14px 14px 40px;
    }

    .block-form-cost__img img {
        height: 240px;
    }

    .block-form-cost__subtitle,
    .block-form-cost__form {
        max-width: 100%;
    }

    .block-form-cost__bottom {
        margin-top: 34px;
        padding: 26px 16px;
    }

    .block-form-cost__bottom-title {
        font-size: 26px;
    }

    .block-form-excursion__inner {
        padding: 20px;
    }
    .block-form-excursion__content {
        padding: 10px 20px;
        margin: 0px;
    }

    .habitation.small-container {
        padding-left: 16px;
        padding-right: 16px;
    }
    .habitation__content {
        flex-direction: column;
        gap: 18px;
    }
    .habitation__col:first-child {
        margin-bottom: 100px;
    }
    .habitation-des-1 {
        top: 50.5%;
        right: 20px;
        width: auto;
    }

    .habitation-des-2 {
        left: -39px;
        bottom: auto;
        top: 48%;
        width: auto;
        transform: scale(0.65);
    }

    .habitation__col {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .habitation__col:nth-child(2) .habitation__img {
        order: 2;
    }
    .habitation__col:nth-child(2) .habitation__text {
        order: 1;
    }

    .habitation__text.billet-light {
        padding: 22px 18px;
    }

    .habitation__text p {
        margin: 0 0 12px;
        font-size: 14px;
        line-height: 1.4;
    }
    .habitation__img {
        width: 100%;
        height: 210px;
        object-fit: cover;
        border-radius: var(--border-radius-large);
        box-shadow: var(--shadow-light);
        display: block;
    }

    .slick-slide:has(.block-advantages__photos) {
        display: none !important;
    }
    .block-advantages__item:nth-child(odd),
    .block-advantages__item:nth-child(even) {
        align-self: center;
        transform: none;
        width: auto;
    }
    .block-advantages__grid .slick-slide {
        padding: 0 12px;
    }
    .block-advantages__item {
        box-shadow: none;
    }

    .block-advantages__item-subtitle {
        font-size: 14px;
    }
    .block-adv__slick-nav {
        display: flex;
        justify-content: center;
    }
 .block-advantages__grid .slick-list.draggable{
    height: auto!important;
}
    .block-price__slick-nav {
        display: flex;
        justify-content: center;
    }

    .header-des-1 {
        display: block;
        bottom: 0;
    }

    .site-header__address,
    .menu-glavnoe-menju-container {
        display: none;
    }

    .site-header__top,
    header .right-col {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-header__top {
        gap: 0;
    }

    header #site-navigation {
        max-width: 60px;
    }
    header .right-col {
        max-width: 100%;
    }
    .site-header__top,
    .main-navigation {
        padding: 0;
    }

    .menu-toggle {
        width: 56px;
        height: 30px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
        z-index: 200;
        position: relative;
    }

    .menu-toggle span {
        width: 100%;
        height: 5px;
        border-radius: 5px;
        display: block;
        background: var(--color-accent);
    }

    #site-navigation {
        position: relative;
    }

    .primary-menu-overflow {
        display: none;
    }

    #primary-menu {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .main-navigation ul ul {
        position: static;
    }

    .main-navigation ul ul a {
        font-size: 14px;
    }

    body.menu-open {
        overflow: hidden;
        touch-action: none;
    }

    #site-navigation.is-open {
        max-width: 70px;
    }

    #site-navigation.is-open .primary-menu-overflow {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.25);
        z-index: 200;
    }

    #site-navigation.is-open .menu-glavnoe-menju-container {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 80vw;
        /* max-width: 420px; */
        height: 100vh;
        background: #fff;
        z-index: 210;
        padding: 10px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    }

    #site-navigation.is-open #primary-menu {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    #site-navigation.is-open .main-navigation ul ul {
        position: static;
        padding-left: 14px;
    }
    .main-navigation ul {
        gap: 5px;
    }

    .block-rates .rates-grid {
        display: block;
    }
    .block-rates .slick-slide:nth-child(2) .rate-card {
        background: var(--color-accent);
    }

    .history-archive-grid {
        grid-gap: 24px;
    }

    .history-card {
        grid-gap: 22px;
        padding: 28px;
        border-radius: 22px;
    }

    .history-card img {
        max-width: 160px;
        max-height: 160px;
    }

    .history-single__meta-name {
        font-size: 20px;
        line-height: 1.35;
    }

    .history-single__meta-job {
        font-size: 14px;
        margin: 8px 0;
    }

    .history-single__meta-hobby {
        font-size: 15px;
        margin: 8px 0;
    }

    .block-tell-story {
        margin: 40px 10px;
    }
    .block-tell-story__title {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .block-tell-story__subtitle {
        font-size: 14px;
        line-height: 1.75;
        margin-bottom: 18px;
    }

    .block-tell-story__btn {
        width: 100%;
        max-width: 360px;
    }

    .block-tell-story_btn {
        width: 100%;
        max-width: 360px;
    }

    .block-tell-story__disclaime {
        font-size: 14px;
    }

    .footer-map.small-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .footer-map .text-header {
        font-size: 18px;
        margin: 8px 0 14px;
    }

    .footer-map__btn {
        width: 100%;
        max-width: 320px;
        margin-bottom: 22px;
    }

    .footer-map__map {
        padding: 14px;
    }

    .footer-des-1 {
        transform: scale(0.6);
    }

    .site-footer {
        background: url("/wp-content/uploads/2026/01/prekrasnaa-pozilaa-para-s-krasivymi-cvetami-vmeste-v-sadu.jpg");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        padding: 18px 0;
        border-radius: var(--border-radius-large);
    }

    .site-footer__container {
        max-width: 90vw;
        margin: 0 auto;
        padding: 18px 16px;
        border-radius: var(--border-radius-large);
        background: rgba(255, 255, 255, 0.53);

        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
    }

    .site-footer__top {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .site-footer__logo {
        order: 4;
    }

    .site-footer__logo .custom-logo {
        max-height: 52px;
        width: auto;
    }

    .site-footer__contacts {
        order: 1;
    }

    .footer-contact--worktime,
    .footer-contact--address,
    .footer-contact--email {
        font-size: 16px;
        line-height: 1.4;
    }

    .site-footer__nav {
        order: 2;
    }

    .footer-menu__list {
        margin: 6px 0 0;
        padding: 0;
        list-style: none;
        display: grid;
        gap: 6px;
    }

    .site-footer__polaroids {
        order: 4;
        display: block;
        position: relative;
        min-height: auto;
        height: 0px;
        width: 70vw;
    }

    .footer-polaroid {
        position: absolute;
        width: 120px;
        height: 140px;
        padding: 8px 8px 26px;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 16px 28px rgba(0, 0, 0, 0.14);
        border: 1px solid rgba(0, 0, 0, 0.06);
        overflow: hidden;
    }

    .footer-polaroid img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
        display: block;
    }

    .footer-polaroid.is-1 {
        right: -10px;
        top: -550px;
        transform: rotate(-6deg);
        z-index: 1;
    }
    .footer-polaroid.is-2 {
        right: -50px;
        top: -450px;
        transform: rotate(14deg);
        z-index: 2;
    }

    .site-footer__bottom {
        border-top: 1px solid rgba(55, 24, 25, 0.1);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .archive-article .page-header {
        padding: 0 16px;
        margin-bottom: 18px;
    }

    .article-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
        padding: 0 16px;
    }

    .article-card__thumb img {
        height: 190px;
    }

    .breadcrumbs {
        font-size: 22px;
        gap: 10px;
        margin: 25px 0 0;
         flex-wrap: wrap;
        overflow: hidden;
        /* justify-content: center; */
            padding: 0 30px;
    }
    .breadcrumbs a,
.breadcrumbs span{
    font-size: 13px;
}
.breadcrumbs span{
        display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
    .single-history .entry-title {
        padding: 0 16px;
        margin-bottom: 14px;
        margin: 10px auto;
        text-align: center;
    }

    .history-single {
        padding: 0 16px;
    }

    .history-single__thumb img {
        height: 100%;
    }

    .history-single .entry-content {
        padding: 22px;
    }

    .block-gallery__title {
        font-size: 34px;
    }

    .block-gallery__rows {
        padding: 0 16px;
        gap: 14px;
    }

    .block-gallery__row {
        gap: 12px;
    }

    .contacts-block__grid {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 0 16px;
    }

    .contacts-block__title {
        margin: 10px 0px 50px -60px;
    }

    .contacts-block__line--address,
    .contacts-block__line--phone,
    .contacts-block__line--email {
        font-size: 16px;
    }

    .cookie-popup {
        bottom: 12px;
    }

    .cookie-popup__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 14px;
    }

    .cookie-popup__btn {
        width: 100%;
        text-align: center;
    }
    .small-container,
    .large-container {
        padding: 20px 10px 20px;
        margin: 0 auto;
    }
    /* .small-container + .small-container,
    .small-container + .large-container,
    .large-container + .small-container, 
    .large-container + .large-container {
        margin: 80px auto;
    } */
    .block-rates .block-title {
        margin: 0 0 40px;
    }
    .rate-price,
    .rate-title.text-header,
    .rate-desc {
        margin: 10px 0;
    }
    .rate-day__content {
        margin: 40px 0 20px;
    }
    .about-title {
        margin-bottom: 50px;
    }
    .fan-card--photo img {
        max-height: 550px;
    }
    .banner {
        margin-top: 0px;
    }
    [class^="steps-flow__decor--"] {
        display: none;
    }
    .steps-flow__step .step-card {
        transform: translate(0, 0) !important;
        margin-top: 0 !important;
    }
    .steps-flow__step {
        display: block;
    }
    .steps-flow__step:nth-child(3) .step-card,
    .steps-flow__step:nth-child(5) .step-card {
        background: var(--color-accent);
    }
    .block-advantages__title,
    .block-history-list__title {
        margin-bottom: 30px;
    }

    .block-tell-story,
    .block-form-cost__bottom {
        margin: 10px;
    }
    .steps-flow__title {
        margin: 30px 0;
    }

    .service-hero {
        grid-template-columns: 1fr;
    }

    .service-hero__media {
        height: 160px;
    }

    .service-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-cards {
        grid-template-columns: 1fr;
    }

    .service-price {
        grid-template-columns: 1fr;
    }

    .archive-service .page-header {
        padding: 0 16px;
        margin-bottom: 18px;
    }

    .service-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
        padding: 0 16px;
    }

    .service-card__thumb img {
        height: 190px;
    }
    .service-card__title {
        font-size: 20px;
    }

    .block-articles .block-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
        padding: 0 16px;
    }

    .block-articles__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0 16px;
    }

    .block-articles__thumb-img {
        height: 190px;
    }
    .site-header {
        display: flex;
    }
    .fan {
        height: auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 18px;
    }
    .fan-card {
        position: static;
        transform: none !important;
        width: 100% !important;
        height: auto !important;
        box-shadow: var(--shadow-light);
    }
    .fan-card--photo {
        height: 220px;
    }
    .fan-deco {
        display: none;
    }

    .banner-inner {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px;
        column-gap: 60px;
    }
    .polaroids {
        height: 600px;
        order: 2;
        opacity: 0.95;
    }
    .banner-content {
        order: 1;
    }
    .metrics {
        grid-template-columns: 1fr;
    }
    .hero {
        padding: 0 10px;
        margin: 40px 0;
    }
    .hero .design-img {
        display: none;
    }
    .hero__promo {
        position: static;
        margin: 20px 0;
        max-width: none;
    }

    .block-services__more-btn {
        margin-top: 20px;
    }
    .day-card {
        padding: 22px 18px;
        box-shadow: none;
    }
    .day-deco {
        display: none;
    }

    .day-grid img {
        display: none;
    }

    .day-card.day-card--c3 {
        background-color: var(--color-accent);
    }
    .day-card.day-card--c4 {
        background-color: var(--color-light);
    }
    .main-navigation ul{
            flex-direction: column;
    }
    .main-navigation ul li{
    width: 100%;
    }
    .block-widget__wrapper {
        flex-direction: column-reverse;
            align-items: center;
    }
    .block-widget-left {
        /* max-width: none; */
    }

}

@media (max-width: 767.98px) {

    .block-tell-story {
        padding: 26px 16px 18px;
        margin: 80px 10px !important;
    }

    .block-tell-story__btns {
        gap: 12px;
    }
    .block-tell-story__btn,
    .block-tell-story__btn a {
        font-size: 16px;
    }

    .block-history-list__grid {
        gap: 16px;
    }

    .history-teaser {
        padding: 18px;
    }

    .history-teaser__fio {
        font-size: 18px;
    }

    .history-teaser__excerpt {
        font-size: 13px;
    }

    .history-teaser__more-btn a {
        width: 100%;
        max-width: 320px;
    }

    .archive-article .archive-description {
        font-size: 14px;
    }

    .article-archive-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .article-card__content {
        padding: 16px;
    }

    .article-card__thumb img {
        height: 180px;
    }

    .article-card__more {
        width: 100%;
        justify-content: center;
    }

    .block-articles__grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .block-articles__content {
        padding: 16px;
    }

    .block-articles__thumb-img {
        height: 180px;
    }

    .block-articles__btn {
        width: 100%;
        justify-content: center;
    }

    .archive-service .archive-description {
        font-size: 14px;
    }

    .service-archive-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 40px 0;
    }

    .service-card__content {
        padding: 16px;
    }

    .service-card__thumb img {
        height: 180px;
    }

    .service-card__more {
        width: 100%;
        justify-content: center;
    }

    .service-detail__container {
        padding: 0 16px;
    }

    .service-hero {
        padding: 18px;
    }

    .service-hero__title {
        font-size: 30px;
    }

    .service-hero__lead {
        font-size: 14px;
    }

    .service-facts {
        grid-template-columns: 1fr;
    }

    .service-section__title {
        font-size: 22px;
    }
    h1 {
        font-size: 36px;
    }
    .site-branding img,
    .custom-logo {
        max-height: 55px;
    }

    .breadcrumbs {
        font-size: 18px;
        gap: 8px;
    }
    .breadcrumbs > span:first-of-type {
        width: 6px;
        height: 6px;
    }

    .history-single .entry-header {
        grid-template-columns: 1fr;
    }
    .history-single__thumb img {
        height: 260px;
    }

    .history-single__meta {
        justify-content: flex-start;
        font-size: 16px;
    }

    .history-single__meta-row {
        width: 100%;
        justify-content: space-between;
        padding: 12px 14px;
    }

    .history-single .entry-content p {
        font-size: 16px;
        line-height: 1.8;
    }

    .history-single .entry-content {
        padding: 10px;
        margin-top: 10px;
    }

    .block-gallery__title {
        font-size: 28px;
    }

    .block-gallery__subtitle {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .block-gallery__item {
        width: clamp(150px, 60vw, 260px);
        aspect-ratio: 4 / 3;
    }

    .contacts-block__btn {
        width: 100%;
        max-width: 320px;
    }

    .contacts-block__soc {
        width: 38px;
        height: 38px;
    }

    .history-archive-grid {
        grid-gap: 16px;
    }

    .history-card {
        flex-direction: column;
        align-items: flex-start;
        grid-gap: 14px;
        padding: 18px;
    }

    .history-card a.history-card__thumb,
    .history-card__thumb {
        align-self: center;
    }

    .history-card img {
        max-width: 110px;
        max-height: 110px;
    }

    .history-single__meta-name {
        font-size: 18px;
    }

    .history-single__meta-job {
        font-size: 13px;
    }

    .history-single__meta-hobby {
        font-size: 14px;
    }
    .service-single__thumb,
    .article-single__thumb {
            width: 100%;
    max-width: none;
    margin: 0 0 20px;
    padding: 0 20px;
    float: none;
    }
}

@media (max-width: 660px) {
    .fan-card.billet-light {
        padding: 30px;
    }
    .fan-card:has(img) {
        height: 260px !important;
    }
    .base-text {
        font-size: 16px;
    }
    .section-header {
        font-size: 33px;
    }
    .billet-dashed {
        padding: 20px;
    }
    .banner {
        margin-top: 50px;
    }
    .block-center__text {
        margin: 40px auto;
    }
    .block-center img{
    width: 100%;
    margin-bottom: 20px;
}
.entry-content img.alignright {
    width: 100%;
}
}

@media (max-width: 520px) {
    .fan-card--text {
        padding: 18px 16px;
    }
    .banner {
        border-radius: 18px;
    }

    .polaroids {
        height: 170px;
    }
    .polaroid {
        width: 138px;
    }
    .polaroid img {
        height: 110px;
    }
    .metric-text {
        font-size: 20px;
    }

    .day-title {
        font-size: 30px;
        line-height: 1.15;
    }
}

.not-found-des {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 10px;
}
.page-id-258 .entry-content {
    max-width: var(--small-container);
    padding: 0 10px;
    margin: 0 auto;
}

.entry-content {
    padding: 0 20px;
}
/* ai тексты */

/* Generic cards */
#ai-text .card {
    border-radius: var(--border-radius-large);
    padding: 15px;
}
#ai-text .card--soft {
    background: var(--color-light);
    box-shadow: var(--shadow-contrast);
}
#ai-text .card--accent {
    background: var(--color-accent);
    box-shadow: var(--shadow-contrast);
}
#ai-text .card--dashed {
    background: #fff;
    border: var(--border-dashed);
}

/* Media placeholder */
#ai-text .media-placeholder {
    width: 100%;
    height: 100%;
    /* aspect-ratio: 2 / 1; */
    border-radius: var(--border-radius-large);
}
#ai-text .media-placeholder img {
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-small);
}
/* ===== 1) Hero ===== */
#ai-text .hero__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

/* ===== 2) Когда требуется помощь ===== */
#ai-text .help__layout {
    display: grid;
    gap: 24px;
}
#ai-text .help__signs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}
#ai-text .help__sign {
    padding: 20px;
    border-radius: var(--border-radius-large);
    background: var(--color-accent);
    box-shadow: var(--shadow-contrast);
}

/* ===== 3) Что важно учитывать ===== */
#ai-text .important__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

#ai-text .important__text {
    display: flex;
    grid-gap: 20px;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
}

/* ===== 4) Как организуем уход ===== */
#ai-text .care__grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
}
#ai-text .care__grid .card--soft {
    transform: rotate(-2deg);
}
#ai-text .care__grid .card--accent {
    transform: rotate(2deg);
}

/* ===== 5) Форматы проживания (табы без JS) ===== */
#ai-text .formats__tabs {
    margin-top: 20px;
    text-align: center;
}

#ai-text .formats__tabs input[type="radio"] {
    display: none;
}

#ai-text .formats__tab {
    display: inline-block;
    margin-right: 12px;
    margin-bottom: 12px;
    padding: 14px 22px;
    cursor: pointer;
    background: var(--color-light);
    border-radius: 999px;
    font-family: var(--font-alt);
    transition: background 0.25s ease;
}

#ai-text #formats-tab-1:checked + label,
#ai-text #formats-tab-2:checked + label,
#ai-text #formats-tab-3:checked + label {
    background: var(--color-accent);
}

#ai-text .formats__panels {
    margin-top: 20px;
    text-align: left;
}
#ai-text .formats__panel {
    display: none;
}

#ai-text #formats-tab-1:checked ~ .formats__panels .formats__panel:nth-child(1),
#ai-text #formats-tab-2:checked ~ .formats__panels .formats__panel:nth-child(2),
#ai-text #formats-tab-3:checked ~ .formats__panels .formats__panel:nth-child(3) {
    display: block;
}

/* ===== 6) FAQ ===== */
#ai-text .faq {
    display: grid;
    gap: 16px;
}
#ai-text .faq details {
    background: var(--color-accent);
    border-radius: var(--border-radius-large);
    padding: 20px;
    box-shadow: var(--shadow-contrast);
}
#ai-text .faq summary {
    cursor: pointer;
    list-style: none;
    font-family: var(--font-alt);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    font-weight: 600;
}
#ai-text .faq summary::-webkit-details-marker {
    display: none;
}
#ai-text .faq summary::after {
    content: "＋";
    opacity: 0.7;
}
#ai-text .faq details[open] summary::after {
    content: "—";
}
#ai-text .faq p {
    margin-top: 20px;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    #ai-text .care__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #ai-text .help__signs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    #ai-text .hero__layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    #ai-text .important__layout,
    #ai-text .help__signs,
    #ai-text .care__grid {
        grid-template-columns: 1fr;
    }

    #ai-text .formats__tab {
        display: block;
        width: 100%;
        text-align: center;
    }

    #ai-text .media-placeholder {
        aspect-ratio: 16 / 10;
    }
}

br {
    display: none;
}
#ai-text p:empty {
    display: none;
}
#ai-text p {
    margin: 0 0 16px;
} /* чтобы WP-параграфы не ломали вертикальные ритмы */

#ai-text .hero-btn {
    margin-top: 20px;
    text-align: center;
}
#ai-text .hero-btn::after {
    background: transparent;
}
#ai-text .help__sign strong,
#ai-text .container .care__grid .card strong {
    font-family: var(--font-alt);
    font-weight: 500;
    font-size: 22px;
}

#ai-text .important__layout li {
    margin: 12px 0;
}
#ai-text .text p,
#ai-text .text div {
    margin: 12px 0;
}

#ai-text .srv__promo-btn,
#ai-text .hero-btn{
    display: inline-block;
    width: 300px;
}

@media (max-width: 768px){
    #ai-text div:has(>.srv__promo-btn){
    display: flex;
    flex-direction: column;
    margin: 20px 0;
    align-items: center;
}
 
}
 .js-services-slick .slick-track {
  display: flex !important;
}
.js-services-slick .slick-slide {
  height: auto !important;
  display: flex !important;
}
.js-services-slick .slick-slide > div {
  display: flex;
  width: 100%;
}

a[class^=button]:hover::after{
transform: scaleX(0);
}

@media(max-width: 1440px){
    #primary{
        overflow: hidden;
        /* padding: 0 10px; */
    }
}

.foogallery-container > *{
    max-height: 230px;
    overflow: hidden;
}



/* ai тексты */

/* Generic cards */
#ai-text .card {
    border-radius: var(--border-radius-large);
    padding: 15px;
}
#ai-text .card--soft {
    background: var(--color-light);
    box-shadow: var(--shadow-contrast);
}
#ai-text .card--accent {
    background: var(--color-accent);
    box-shadow: var(--shadow-contrast);
}
#ai-text .card--dashed {
    background: #fff;
    border: var(--border-dashed);
}

/* Media placeholder */
#ai-text .media-placeholder {
    width: 100%;
    height: 100%;
    /* aspect-ratio: 2 / 1; */
    border-radius: var(--border-radius-large);
}
#ai-text .media-placeholder img {
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-small);
}
/* ===== 1) Hero ===== */
#ai-text .hero__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

/* ===== 2) Когда требуется помощь ===== */
#ai-text .help__layout {
    display: grid;
    gap: 24px;
}
#ai-text .help__signs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}
#ai-text .help__sign {
    padding: 20px;
    border-radius: var(--border-radius-large);
    background: var(--color-accent);
    box-shadow: var(--shadow-contrast);
}

/* ===== 3) Что важно учитывать ===== */
#ai-text .important__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

#ai-text .important__text {
    display: flex;
    grid-gap: 20px;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
}

/* ===== 4) Как организуем уход ===== */
#ai-text .care__grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
}
#ai-text .care__grid .card--soft {
    transform: rotate(-2deg);
}
#ai-text .care__grid .card--accent {
    transform: rotate(2deg);
}

/* ===== 5) Форматы проживания (табы без JS) ===== */
#ai-text .formats__tabs {
    margin-top: 20px;
    text-align: center;
}

#ai-text .formats__tabs input[type="radio"] {
    display: none;
}

#ai-text .formats__tab {
    display: inline-block;
    margin-right: 12px;
    margin-bottom: 12px;
    padding: 14px 22px;
    cursor: pointer;
    background: var(--color-light);
    border-radius: 999px;
    font-family: var(--font-alt);
    transition: background 0.25s ease;
}

#ai-text #formats-tab-1:checked + label,
#ai-text #formats-tab-2:checked + label,
#ai-text #formats-tab-3:checked + label {
    background: var(--color-accent);
}

#ai-text .formats__panels {
    margin-top: 20px;
    text-align: left;
}
#ai-text .formats__panel {
    display: none;
}

#ai-text #formats-tab-1:checked ~ .formats__panels .formats__panel:nth-child(1),
#ai-text #formats-tab-2:checked ~ .formats__panels .formats__panel:nth-child(2),
#ai-text #formats-tab-3:checked ~ .formats__panels .formats__panel:nth-child(3) {
    display: block;
}

/* ===== 6) FAQ ===== */
#ai-text .faq {
    display: grid;
    gap: 16px;
}
#ai-text .faq details {
    background: var(--color-accent);
    border-radius: var(--border-radius-large);
    padding: 20px;
    box-shadow: var(--shadow-contrast);
}
#ai-text .faq summary {
    cursor: pointer;
    list-style: none;
    font-family: var(--font-alt);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    font-weight: 600;
}
#ai-text .faq summary::-webkit-details-marker {
    display: none;
}
#ai-text .faq summary::after {
    content: "＋";
    opacity: 0.7;
}
#ai-text .faq details[open] summary::after {
    content: "—";
}
#ai-text .faq p {
    margin-top: 20px;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    #ai-text .care__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #ai-text .help__signs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    #ai-text .hero__layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    #ai-text .important__layout,
    #ai-text .help__signs,
    #ai-text .care__grid {
        grid-template-columns: 1fr;
    }

    #ai-text .formats__tab {
        display: block;
        width: 100%;
        text-align: center;
    }

    #ai-text .media-placeholder {
        aspect-ratio: 16 / 10;
    }
}

br {
    display: none;
}
#ai-text p:empty {
    display: none;
}
#ai-text p {
    margin: 0 0 16px;
} /* чтобы WP-параграфы не ломали вертикальные ритмы */

#ai-text .hero-btn {
    margin-top: 20px;
    text-align: center;
}
#ai-text .hero-btn::after {
    background: transparent;
}
#ai-text .help__sign strong,
#ai-text .container .care__grid .card strong {
    font-family: var(--font-alt);
    font-weight: 500;
    font-size: 22px;
}

#ai-text .important__layout li {
    margin: 12px 0;
}
#ai-text .text p,
#ai-text .text div {
    margin: 12px 0;
}

#ai-text .srv__promo-btn,
#ai-text .hero-btn{
    display: inline-block;
    width: 300px;
}

@media (max-width: 768px){
    #ai-text div:has(>.srv__promo-btn){
    display: flex;
    flex-direction: column;
    margin: 20px 0;
    align-items: center;
}
}