/* ===== MOBILE MENU BUTTON ENHANCEMENT ===== */
@keyframes menuPulse {
    0%   { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.5); }
    70%  { box-shadow: 0 0 0 10px rgba(0, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

body {
    font-family: "-apple-system", Inter, system-ui, sans-serif;
}

h1,
h2,
h3,
.hero-title {
    font-family: "-apple-system", Archivo, sans-serif;
    font-weight: 700;
}

* {
	margin: 0;
	color: inherit;
}

a {
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.title {
	font-weight: 900;
	font-variation-settings: "wdth" 125;
	line-height: 0.8;
	text-transform: uppercase;
	letter-spacing: calc(-1 * clamp(0px, -4.0909px + 1.1364vw, 10px));
	grid-column: 1 / -1;
}

.title > *:after {
	content: "®";
	font-size: clamp(12px, 3.8182px + 2.2727vw, 32px);
	vertical-align: top;
	font-weight: 500;
}

.grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	padding: clamp(12px, 3.8182px + 2.2727vw, 32px);
	padding-bottom: 0;
	gap: clamp(12px, 3.8182px + 2.2727vw, 32px);
}

.subgrid {
	display: grid;
	grid-template-columns: subgrid;
	gap: clamp(12px, 3.8182px + 2.2727vw, 32px);
}

.main-nav {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: subgrid;
}

.main-nav-list {
	list-style-type: none;
	padding: 0;
	font-variation-settings: "wdth" 125;
	font-weight: 500;
	text-transform: uppercase;
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: center;
	padding: 4px 0;
	border-top: 1px solid black;
	border-bottom: 1px solid black;
	width: 100%;
}

.main-nav-list > li {
	flex: 1 1 0;
	min-width: 0;
	text-align: center;
	white-space: nowrap;
}

.main-nav-list > li > a {
	font-size: clamp(0.5rem, 1.1vw, 0.85rem);
	white-space: nowrap;
}

.products-section {
	grid-column: 2 / -1;
}

.side-menu {
	align-self: start;
	position: sticky;
	top: 1rem;
	background-color: white;
	z-index: 50;
}

.side-menu > div {
	max-height: calc(100vh - 1rem);
	overflow-y: scroll;
}

.side-menu ul {
	list-style-type: none;
	padding-left: 16px;
}

.side-menu h2 {
	margin-bottom: 2rem;
	text-transform: uppercase;
	font-weight: 900;
	font-variation-settings: "wdth" 125;
	font-size: 1.2rem;
}

.side-menu h3 {
	font-weight: 400;
	font-variation-settings: "wdth" 125;
	font-size: 1rem;
	margin-bottom: 0.5rem;
}

.side-menu li:last-of-type {
	margin-bottom: 1rem;
}

.side-menu > div > ul > li:last-of-type > ul > li:last-of-type {
	margin-bottom: 5rem;
}

.side-menu button {
	cursor: pointer;
	background-color: transparent;
	border: 1px solid black;
	font-size: 0.8rem;
	padding: 3px 9px;
	margin-bottom: 3px;
}

.side-menu button:hover {
	background-color: black;
	color: white;
}

#side-menu-toggle {
	display: none;
	position: absolute;
	padding: 9px 3px;
	background-color: white;
	border: 1px solid black;
	border-left: none;
	left: calc(100% - 1px);
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
}

#side-menu-toggle:hover {
	background-color: black;
	color: white;
}

img {
	max-width: 100%;
}

.product-image {
	display: block;
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

.product-cell {
	display: flex;
	flex-direction: column;
}

.product-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: clamp(4px, 1.5455px + 0.6818vw, 10px);
	padding: clamp(4px, 1.5455px + 0.6818vw, 10px) 0;
}

.product-title {
	text-transform: uppercase;
	font-weight: 500;
	font-size: 1rem;
	letter-spacing: -0.025em;
}

.product-price {
	font-size: 0.9rem;
}

.add-to-cart {
	cursor: pointer;
	margin-top: auto;
	background-color: transparent;
	border: 1px solid black;
	font-size: 0.8rem;
	font-variation-settings: "wdth" 125;
	padding: 3px 0;
}

.add-to-cart:hover {
	background-color: black;
	color: white;
}

footer {
	margin-top: 5rem;
	padding: clamp(12px, 3.8182px + 2.2727vw, 32px) 0;
	background-color: white;
	grid-column: 2 / -1;
	border-top: 1px solid black;
	font-size: 0.8rem;
}

/* ========== СТРАНИЦА УСЛУГИ ========== */

.service-content {
	grid-column: 2 / -1;
}

.service-hero {
	margin-bottom: clamp(24px, 7.6364px + 4.5455vw, 64px);
}

.service-hero h2 {
	font-weight: 900;
	font-variation-settings: "wdth" 125;
	font-size: clamp(1.5rem, 0.9545rem + 2.7273vw, 3rem);
	line-height: 0.9;
	text-transform: uppercase;
	letter-spacing: -0.03em;
	margin-bottom: clamp(12px, 3.8182px + 2.2727vw, 32px);
}

.service-hero p {
	font-size: 1rem;
	line-height: 1.5;
	max-width: 60ch;
}

.service-section {
	margin-bottom: clamp(24px, 7.6364px + 4.5455vw, 64px);
	border-top: 1px solid black;
	padding-top: clamp(12px, 3.8182px + 2.2727vw, 32px);
}

.service-section h3 {
	font-weight: 900;
	font-variation-settings: "wdth" 125;
	font-size: 1.2rem;
	text-transform: uppercase;
	letter-spacing: -0.02em;
	margin-bottom: clamp(8px, 2.5455px + 1.5152vw, 20px);
}

.service-section p,
.service-section li {
	font-size: 0.95rem;
	line-height: 1.6;
	max-width: 70ch;
}

.service-section ul {
	list-style-type: none;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.service-section ul li {
	position: relative;
	padding-left: 1.2em;
}

.service-section ul li::before {
	content: "—";
	position: absolute;
	left: 0;
}

.service-cta {
	display: flex;
	gap: clamp(8px, 2.5455px + 1.5152vw, 20px);
	flex-wrap: wrap;
	margin-top: clamp(12px, 3.8182px + 2.2727vw, 32px);
}

.service-cta a {
	display: inline-block;
	border: 1px solid black;
	padding: 8px 20px;
	font-size: 0.85rem;
	font-variation-settings: "wdth" 125;
	font-weight: 500;
	text-transform: uppercase;
	transition: background-color 0.15s, color 0.15s;
}

.service-cta a:hover {
	background-color: black;
	color: white;
	text-decoration: none;
}

.price-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: clamp(8px, 2.5455px + 1.5152vw, 20px);
}

.price-table th,
.price-table td {
	text-align: left;
	padding: 10px 0;
	border-bottom: 1px solid #ddd;
	font-size: 0.9rem;
}

.price-table th {
	font-weight: 700;
	border-bottom: 1px solid black;
}

.price-table td:last-child {
	text-align: right;
	font-weight: 500;
}

.breadcrumb {
	font-size: 0.75rem;
	text-transform: uppercase;
	font-variation-settings: "wdth" 125;
	margin-bottom: clamp(8px, 2.5455px + 1.5152vw, 20px);
	color: #666;
}

.breadcrumb a:hover {
	color: black;
}

/* ========== О КОМПАНИИ ========== */

.about-section {
	grid-column: 2 / -1;
	border-top: 1px solid black;
	padding-top: clamp(12px, 3.8182px + 2.2727vw, 32px);
	margin-bottom: 0;
}

.about-content {
	grid-column: 1 / -1;
}

.about-content h2 {
	font-weight: 900;
	font-variation-settings: "wdth" 125;
	font-size: clamp(1.5rem, 0.9545rem + 2.7273vw, 3rem);
	line-height: 0.9;
	text-transform: uppercase;
	letter-spacing: -0.03em;
	margin-bottom: clamp(12px, 3.8182px + 2.2727vw, 32px);
}

.about-content p {
	font-size: 0.95rem;
	line-height: 1.6;
	max-width: 70ch;
	margin-bottom: clamp(8px, 2.5455px + 1.5152vw, 20px);
}

.about-content p:last-child {
	margin-bottom: 0;
}

/* ========== FAQ ========== */

.faq-section {
	grid-column: 2 / -1;
	border-top: 1px solid black;
	padding-top: clamp(12px, 3.8182px + 2.2727vw, 32px);
	margin-bottom: 0;
}

.faq-section > h2 {
	grid-column: 1 / -1;
	font-weight: 900;
	font-variation-settings: "wdth" 125;
	font-size: clamp(1.5rem, 0.9545rem + 2.7273vw, 3rem);
	line-height: 0.9;
	text-transform: uppercase;
	letter-spacing: -0.03em;
	margin-bottom: clamp(12px, 3.8182px + 2.2727vw, 32px);
}

.faq-list {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	gap: 0;
	border-left: 1px solid black;
	border-right: 1px solid black;
	border-bottom: 1px solid black;
}

.faq-item {
	border-top: 1px solid black;
}

.faq-item:first-child {
	border-top: none;
}

.faq-question {
	font-weight: 500;
	font-variation-settings: "wdth" 125;
	font-size: 0.95rem;
	padding: clamp(10px, 3.1818px + 1.8939vw, 24px);
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: background-color 0.15s;
}

.faq-question::-webkit-details-marker {
	display: none;
}

.faq-question::after {
	content: "+";
	font-size: 1.2rem;
	font-weight: 400;
	margin-left: 1rem;
	flex-shrink: 0;
}

.faq-item[open] .faq-question::after {
	content: "−";
}

.faq-question:hover {
	background-color: black;
	color: white;
}

.faq-answer {
	padding: 0 clamp(10px, 3.1818px + 1.8939vw, 24px) clamp(10px, 3.1818px + 1.8939vw, 24px);
	font-size: 0.9rem;
	line-height: 1.6;
	max-width: 70ch;
	color: #333;
}

/* ========== ОТЗЫВЫ ========== */

.reviews-section {
	grid-column: 2 / -1;
	border-top: 1px solid black;
	padding-top: clamp(12px, 3.8182px + 2.2727vw, 32px);
	margin-bottom: 0;
}

.reviews-section > h2 {
	grid-column: 1 / -1;
	font-weight: 900;
	font-variation-settings: "wdth" 125;
	font-size: clamp(1.5rem, 0.9545rem + 2.7273vw, 3rem);
	line-height: 0.9;
	text-transform: uppercase;
	letter-spacing: -0.03em;
	margin-bottom: clamp(12px, 3.8182px + 2.2727vw, 32px);
}

.reviews-grid {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(12px, 3.8182px + 2.2727vw, 32px);
}

.review-card {
	border: 1px solid black;
	padding: clamp(12px, 3.8182px + 2.2727vw, 32px);
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: clamp(8px, 2.5455px + 1.5152vw, 20px);
}

.review-card p {
	font-size: 0.9rem;
	line-height: 1.6;
	font-style: italic;
	flex: 1;
}

.review-card p::before {
	content: '"';
	font-size: 2rem;
	line-height: 0.5;
	font-weight: 900;
	font-variation-settings: "wdth" 125;
	display: block;
	margin-bottom: 8px;
}

.review-card cite {
	font-size: 0.8rem;
	font-weight: 500;
	font-variation-settings: "wdth" 125;
	font-style: normal;
	border-top: 1px solid #ddd;
	padding-top: clamp(8px, 2.5455px + 1.5152vw, 20px);
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

/* ========== ФОРМА СВЯЗИ ========== */

.contact-section {
	grid-column: 2 / -1;
	border-top: 1px solid black;
	padding-top: clamp(12px, 3.8182px + 2.2727vw, 32px);
	margin-bottom: 0;
}

.contact-content {
	grid-column: 1 / -1;
}

.contact-content h2 {
	font-weight: 900;
	font-variation-settings: "wdth" 125;
	font-size: clamp(1.5rem, 0.9545rem + 2.7273vw, 3rem);
	line-height: 0.9;
	text-transform: uppercase;
	letter-spacing: -0.03em;
	margin-bottom: clamp(12px, 3.8182px + 2.2727vw, 32px);
}

.contact-lead {
	font-size: 1rem;
	line-height: 1.5;
	max-width: 60ch;
	margin-bottom: clamp(12px, 3.8182px + 2.2727vw, 32px);
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: clamp(8px, 2.5455px + 1.5152vw, 20px);
	max-width: 600px;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(8px, 2.5455px + 1.5152vw, 20px);
}

.contact-form input,
.contact-form textarea {
	font-family: "Archivo", sans-serif;
	font-size: 0.9rem;
	padding: 10px 12px;
	border: 1px solid black;
	background: transparent;
	outline: none;
	width: 100%;
	box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
	background-color: black;
	color: white;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
	color: #999;
}

.contact-form input:focus::placeholder,
.contact-form textarea:focus::placeholder {
	color: #ccc;
}

.form-submit {
	cursor: pointer;
	background-color: transparent;
	border: 1px solid black;
	font-family: "Archivo", sans-serif;
	font-size: 0.85rem;
	font-variation-settings: "wdth" 125;
	font-weight: 500;
	text-transform: uppercase;
	padding: 10px 20px;
	align-self: flex-start;
	transition: background-color 0.15s, color 0.15s;
}

.form-submit:hover {
	background-color: black;
	color: white;
}

.contact-note {
	font-size: 0.85rem;
	margin-top: clamp(8px, 2.5455px + 1.5152vw, 20px);
	color: #666;
}

.contact-note a {
	font-weight: 500;
	color: black;
}

.contact-note a:hover {
	text-decoration: underline;
}

/* =========================
   ЕДИНАЯ СИСТЕМА ОТСТУПОВ
   ========================= */

:root{
    --section-space: clamp(28px, 4vw, 56px);
    --section-inner: clamp(18px, 2vw, 32px);
}

/* Уменьшаем общий разрыв сетки */
.grid{
    gap: clamp(10px, 1.5vw, 20px);
}

/* Компактный хедер */
header.subgrid{
    margin-bottom: 8px;
}

.products-section{
    margin-top: 12px;
    margin-bottom: var(--section-space);
}

/* Все основные блоки имеют одинаковый ритм */
.about-section,
.faq-section,
.reviews-section,
.contact-section{
    margin-top: 0;
    margin-bottom: var(--section-space);
    padding-top: var(--section-inner);
}

.about-content h2,
.faq-section > h2,
.reviews-section > h2,
.contact-content h2{
    margin-bottom: var(--section-inner);
}

/* Более плотный текст */
.about-content p{
    margin-bottom: 12px;
}

/* Отзывы ближе к заголовку */
.reviews-grid{
    margin-top: 4px;
}

/* Форма без лишнего воздуха */
.contact-lead{
    margin-bottom: 20px;
}

.contact-form{
    margin-top: 0;
}

.contact-note{
    margin-top: 14px;
}

/* Подвал логично завершает страницу */
footer{
    margin-top: 0;
    padding-top: 24px;
}

/* Мобильные устройства */
@media (max-width: 600px){
    :root{
        --section-space: 24px;
        --section-inner: 16px;
    }

    .products-section{
        margin-bottom: 24px;
    }
}

/* ========== ГЛАВНАЯ СТРАНИЦА (index.html) ========== */

.title-fill {
    font-weight: 900;
    font-variation-settings: "wdth" 125;
    text-transform: uppercase;
    letter-spacing: calc(-1 * clamp(0px, -4.0909px + 1.1364vw, 10px));
    font-size: clamp(3rem, 14vw, 12rem);
    background: url('./assets/experts-bg.jpg') center/cover no-repeat;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
    line-height: 0.8;
    display: block;
    width: 100%;
    text-align: center;
}

.title-fill:after {
    content: none !important;
}

.title > .title-fill:after {
    content: none !important;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .title-fill {
        background: none !important;
        -webkit-text-fill-color: black !important;
        color: black !important;
    }
}

.site-subtitle {
    grid-column: 1 / -1;
    text-align: center;
    font-size: clamp(0.75rem, 1.2vw, 1rem);
    font-weight: 400;
    font-variation-settings: "wdth" 125;
    margin-top: 2px;
    margin-bottom: 4px;
    color: #333;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.home-content {
    grid-column: 2 / -1;
}

.home-hero {
    margin-bottom: clamp(24px, 7.6364px + 4.5455vw, 64px);
}

.home-hero h2 {
    font-weight: 900;
    font-variation-settings: "wdth" 125;
    font-size: clamp(1.5rem, 0.9545rem + 2.7273vw, 3rem);
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    margin-bottom: clamp(12px, 3.8182px + 2.2727vw, 32px);
}

.home-hero p {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 60ch;
}

.home-services {
    margin-bottom: clamp(24px, 7.6364px + 4.5455vw, 64px);
    border-top: 1px solid black;
    padding-top: clamp(12px, 3.8182px + 2.2727vw, 32px);
}

.home-services > h3 {
    font-weight: 900;
    font-variation-settings: "wdth" 125;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: clamp(12px, 3.8182px + 2.2727vw, 32px);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(12px, 3.8182px + 2.2727vw, 32px);
}

.service-card {
    border: 1px solid black;
    padding: clamp(12px, 3px + 2vw, 24px);
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 2px + 1vw, 14px);
    transition: background 0.3s ease, color 0.3s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.service-card:hover {
    background: url('./assets/experts-bg.jpg') center/cover no-repeat;
    color: white;
}

.service-card:hover h4,
.service-card:hover p,
.service-card:hover span {
    color: white;
}

.service-card h4 {
    font-weight: 900;
    font-variation-settings: "wdth" 125;
    font-size: clamp(0.9rem, 0.8rem + 0.5vw, 1.1rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.service-card p {
    font-size: clamp(0.8rem, 0.75rem + 0.3vw, 0.9rem);
    line-height: 1.4;
    color: #333;
    flex: 1;
}

.service-card a {
    font-size: clamp(0.85rem, 0.8rem + 0.3vw, 1rem);
    font-weight: 500;
    color: #000;
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-top: auto;
}

.service-card a:hover {
    color: #333;
}

.home-why {
    margin-bottom: clamp(24px, 7.6364px + 4.5455vw, 64px);
    border-top: 1px solid black;
    padding-top: clamp(12px, 3.8182px + 2.2727vw, 32px);
}

.home-why h3 {
    font-weight: 900;
    font-variation-settings: "wdth" 125;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: clamp(12px, 3.8182px + 2.2727vw, 32px);
}

.home-why ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.home-why li {
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    padding-left: 1.2em;
}

.home-why li::before {
    content: "—";
    position: absolute;
    left: 0;
}

.home-cta {
    margin-bottom: clamp(24px, 7.6364px + 4.5455vw, 64px);
    border-top: 1px solid black;
    padding-top: clamp(12px, 3.8182px + 2.2727vw, 32px);
}

.home-cta h3 {
    font-weight: 900;
    font-variation-settings: "wdth" 125;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: clamp(8px, 2.5455px + 1.5152vw, 20px);
}

.home-cta > p {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 60ch;
    margin-bottom: clamp(12px, 3.8182px + 2.2727vw, 32px);
}

/* Home page media queries */
@media screen and (max-width: 1000px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 800px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .site-subtitle {
        font-size: 0.7rem;
        padding: 0 8px;
        line-height: 1.2;
    }
}

@media screen and (max-width: 400px) {
    
    .services-grid {
        grid-template-columns: 1fr;
    }

    .title-fill {
        font-size: clamp(2.5rem, 12vw, 10rem);
        letter-spacing: -2px;
    }

    .site-subtitle {
        font-size: 0.65rem;
        padding: 0 4px;
    }
}

/* ========== SEO БЛОКИ НА ГЛАВНОЙ ========== */

.home-seo {
    margin-bottom: clamp(24px, 7.6364px + 4.5455vw, 64px);
    border-top: 1px solid black;
    padding-top: clamp(12px, 3.8182px + 2.2727vw, 32px);
}

.home-seo h3 {
    font-weight: 900;
    font-variation-settings: "wdth" 125;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: clamp(12px, 3.8182px + 2.2727vw, 32px);
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(12px, 3.8182px + 2.2727vw, 32px);
}

.seo-card {
    border: 1px solid black;
    padding: clamp(12px, 3px + 2vw, 24px);
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 1.5px + 1vw, 10px);
    transition: background-color 0.15s;
}

.seo-card:hover {
    background-color: #f5f5f5;
}

.seo-card h4 {
    font-weight: 900;
    font-variation-settings: "wdth" 125;
    font-size: clamp(0.85rem, 0.75rem + 0.5vw, 1rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.seo-card p {
    font-size: clamp(0.75rem, 0.7rem + 0.3vw, 0.85rem);
    line-height: 1.5;
    color: #333;
}

/* Карта на главной */
.map-section {
    border-top: 1px solid black;
    padding-top: clamp(8px, 2px + 1.5vw, 16px);
    margin-bottom: clamp(12px, 3px + 2vw, 24px);
}

.map-section h3 {
    font-weight: 900;
    font-variation-settings: "wdth" 125;
    font-size: clamp(0.9rem, 0.8rem + 0.5vw, 1.1rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: clamp(6px, 1.5px + 1vw, 12px);
}

.map-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid black;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    font-size: clamp(0.8rem, 0.75rem + 0.3vw, 0.9rem);
    color: #666;
    text-transform: uppercase;
    font-variation-settings: "wdth" 125;
}

/* Media queries for SEO blocks */
@media screen and (max-width: 1000px) {
    .seo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 800px) {
    .seo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .seo-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 400px) {
    .seo-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== EXPERTIZY / OCENKA / YURISTY PAGE STYLES ========== */

.expertise-content {
    grid-column: 2 / -1;
}

.expertise-hero {
    margin-bottom: clamp(12px, 3px + 2vw, 24px);
}

.expertise-hero h2 {
    font-weight: 900;
    font-variation-settings: "wdth" 125;
    font-size: clamp(1.2rem, 0.8rem + 2vw, 2rem);
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    margin-bottom: clamp(8px, 2px + 1.5vw, 16px);
}

.expertise-hero p {
    font-size: clamp(0.8rem, 0.75rem + 0.3vw, 0.9rem);
    line-height: 1.3;
    max-width: 70ch;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(8px, 2px + 1.5vw, 16px);
    margin-bottom: clamp(16px, 4px + 3vw, 32px);
}

.expertise-card {
    border: 1px solid black;
    padding: clamp(8px, 2px + 1.5vw, 14px);
    display: flex;
    flex-direction: column;
    gap: clamp(4px, 1px + 0.8vw, 8px);
    transition: background-color 0.15s;
}

.expertise-card:hover {
    background-color: #f5f5f5;
}

.expertise-card h3 {
    font-weight: 900;
    font-variation-settings: "wdth" 125;
    font-size: clamp(0.8rem, 0.7rem + 0.5vw, 1rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.expertise-card p {
    font-size: clamp(0.7rem, 0.65rem + 0.3vw, 0.8rem);
    line-height: 1.3;
    color: #333;
    flex: 1;
}

.expertise-card .price-tag {
    font-size: clamp(0.75rem, 0.7rem + 0.3vw, 0.85rem);
    font-weight: 500;
    color: #000;
}

.expertise-card a {
    display: inline-block;
    border: 1px solid black;
    padding: 4px 10px;
    font-size: clamp(0.65rem, 0.6rem + 0.3vw, 0.75rem);
    font-variation-settings: "wdth" 125;
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
    transition: background-color 0.15s, color 0.15s;
    margin-top: auto;
}

.expertise-card a:hover {
    background-color: black;
    color: white;
    text-decoration: none;
}

.why-us {
    border-top: 1px solid black;
    padding-top: clamp(8px, 2px + 1.5vw, 16px);
    margin-bottom: clamp(12px, 3px + 2vw, 24px);
}

.why-us h3 {
    font-weight: 900;
    font-variation-settings: "wdth" 125;
    font-size: clamp(0.9rem, 0.8rem + 0.5vw, 1.1rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: clamp(6px, 1.5px + 1vw, 12px);
}

.why-us ul {
    list-style-type: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.why-us li {
    font-size: clamp(0.75rem, 0.7rem + 0.3vw, 0.85rem);
    line-height: 1.3;
    position: relative;
    padding-left: 1.2em;
}

.why-us li::before {
    content: "—";
    position: absolute;
    left: 0;
}

.seo-text {
    border-top: 1px solid black;
    padding-top: clamp(8px, 2px + 1.5vw, 16px);
    margin-bottom: clamp(12px, 3px + 2vw, 24px);
}

.seo-text h3 {
    font-weight: 900;
    font-variation-settings: "wdth" 125;
    font-size: clamp(0.9rem, 0.8rem + 0.5vw, 1.1rem);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: clamp(6px, 1.5px + 1vw, 12px);
}

.seo-text p {
    font-size: clamp(0.75rem, 0.7rem + 0.3vw, 0.85rem);
    line-height: 1.4;
    max-width: 75ch;
    margin-bottom: 0.5em;
    color: #333;
}

@media screen and (max-width: 1000px) {
    .expertise-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 800px) {
    .main-nav-list > li:nth-last-child(2),
    .main-nav-list > li:nth-last-child(1) {
        margin-left: 0;
    }
}

@media screen and (max-width: 600px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-us ul {
        grid-template-columns: 1fr;
    }
}


/* ========== МЕДИА-ЗАПРОСЫ ========== */

@media screen and (max-width: 1000px) {
	.grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

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

@media screen and (max-width: 800px) {
	.grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

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

@media screen and (max-width: 600px) {
	.grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.form-row {
		grid-template-columns: 1fr;
	}

	.review-card p::before {
		font-size: 1.5rem;
	}
}

@media screen and (max-width: 400px) {
	.grid {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}

	#side-menu-toggle {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 4px;
		position: absolute;
		padding: 18px 6px;
		background-color: #000;
		color: #fff;
		border: none;
		left: calc(100% - 1px);
		top: 50%;
		transform: translateY(-50%);
		z-index: 10;
		border-radius: 0 6px 6px 0;
		box-shadow: 2px 0 8px rgba(0,0,0,0.3);
		animation: menuPulse 2s infinite;
		cursor: pointer;
	}

	#side-menu-toggle svg {
		display: none;
	}

	#side-menu-toggle::after {
		content: "МЕНЮ";
		font-family: "Archivo", sans-serif;
		font-variation-settings: "wdth" 125;
		font-weight: 700;
		font-size: 0.65rem;
		text-transform: uppercase;
		letter-spacing: 0.12em;
		writing-mode: vertical-rl;
		text-orientation: mixed;
		white-space: nowrap;
	}

	#side-menu-toggle:hover {
		background-color: #ff3b30;
		color: #fff;
		animation: none;
	}

	.side-menu {
		max-width: 75vw;
		min-height: 100vh;
		transform: translateX(calc(-100% - clamp(12px, 3.8182px + 2.2727vw, 32px)));
		position: fixed;
		top: 0px;
		z-index: 100;
		background-color: white;
	}

	.side-menu > div {
		padding: clamp(12px, 3.8182px + 2.2727vw, 32px);
	}

	.products-section,
	footer,
	.service-content,
	.about-section,
	.faq-section,
	.reviews-section,
	.contact-section,
	.home-content,
	.expertise-content {
		grid-column: 1 / -1;
	}

	.faq-question {
		font-size: 0.85rem;
		padding: clamp(8px, 2.5455px + 1.5152vw, 16px);
	}

	.faq-answer {
		padding: 0 clamp(8px, 2.5455px + 1.5152vw, 16px) clamp(8px, 2.5455px + 1.5152vw, 16px);
		font-size: 0.85rem;
	}

	.contact-form input,
	.contact-form textarea {
		font-size: 0.85rem;
		padding: 8px 10px;
	}

	.form-submit {
		width: 100%;
		align-self: stretch;
		text-align: center;
	}

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

	.side-menu.show {
		transform: translateX(calc(clamp(12px, 3.8182px + 2.2727vw, 32px) * -1));
	}

	.side-menu.show > #side-menu-toggle {
		background-color: #000;
		color: #fff;
		animation: none;
	}

	.title-fill {
		font-size: clamp(2.5rem, 12vw, 10rem);
		letter-spacing: -2px;
	}

	.site-subtitle {
		font-size: 0.65rem;
		padding: 0 4px;
	}
}

/* =======================================================
MOBILE FIXES
Добавить В САМЫЙ КОНЕЦ style.css
======================================================= */

@media screen and (max-width: 768px) {

```
/* Оставляем верхнее меню полосой */
.main-nav {
    display: grid;
    grid-template-columns: subgrid;
}

.main-nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.main-nav-list > li {
    flex: 0 1 auto;
    min-width: auto;
}

/* Показываем кнопку бокового меню */
#side-menu-toggle {
    display: block;
}

/* Боковое меню */
.side-menu {
    max-width: 80vw;
    min-height: 100vh;
    position: fixed;
    top: 0;
    z-index: 100;
    background: #fff;

    transform: translateX(calc(-100% - 20px));
    transition: transform .25s ease;
}

.side-menu.show {
    transform: translateX(-20px);
}

/* Весь контент на ширину экрана */
.products-section,
.service-content,
.about-section,
.about-content,
.contacts-content,
.faq-section,
.reviews-section,
.contact-section,
.home-content,
.expertise-content,
footer {
    grid-column: 1 / -1 !important;
}

/* Форма */
.form-row {
    grid-template-columns: 1fr;
}

/* Отзывы */
.reviews-grid {
    grid-template-columns: 1fr;
}

/* Карточки услуг */
.services-grid {
    grid-template-columns: 1fr;
}

/* SEO блоки */
.seo-grid {
    grid-template-columns: 1fr;
}

/* Экспертизы */
.expertise-grid {
    grid-template-columns: 1fr;
}

/* Преимущества */
.why-us ul {
    grid-template-columns: 1fr;
}

/* Убираем ограничение ширины текста */
.service-hero p,
.service-section p,
.service-section li,
.about-content p,
.contact-lead,
.faq-answer,
.home-hero p,
.expertise-hero p,
.seo-text p {
    max-width: 100%;
}

/* Таблицы цен */
.price-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
}

/* Карта */
.map-placeholder {
    aspect-ratio: 1.5 / 1;
}
```

}

/* Очень маленькие телефоны */
@media screen and (max-width: 480px) {

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

.title-fill {
    font-size: clamp(2.5rem, 12vw, 8rem);
    letter-spacing: -2px;
}

.site-subtitle {
    font-size: 0.65rem;
    padding: 0 4px;
}

.faq-question {
    font-size: 0.85rem;
}

.faq-answer {
    font-size: 0.85rem;
}

.form-submit {
    width: 100%;
    align-self: stretch;
}


}
@media screen and (max-width: 400px)
.products-section,
footer,
.service-content,
.about-section,
.faq-section,
.reviews-section,
.contact-section,
.home-content,
.expertise-content {
    grid-column: 1 / -1;
}
.services-menu a {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background-color 0.2s, border-color 0.2s;
    margin-bottom: 8px;  /* ← отступ снизу */
}

.services-menu a:hover {
    background-color: #e0e0e0;
    border-color: #999;
}

.services-menu a:active {
    background-color: #d0d0d0;
}

/* Убираем маркеры у вложенных списков */
.services-menu ul ul {
    list-style: none;
    padding-left: 0;
    margin: 0;           /* ← убираем лишние отступы списка */
}

.services-menu ul ul li {
    margin: 0;           /* ← убираем стандартный margin li */
    line-height: 1;      /* ← убираем лишнюю высоту строки */
}

/* ===== МОБИЛЬНАЯ КНОПКА МЕНЮ ===== */
@media screen and (max-width: 768px) {
    #side-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        padding: 18px 6px;
        background-color: #000;
        color: #fff;
        border: none;
        left: calc(100% - 1px);
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        border-radius: 0 6px 6px 0;
        box-shadow: 2px 0 8px rgba(0,0,0,0.3);
        animation: menuPulse 2s infinite;
        cursor: pointer;
    }

    #side-menu-toggle .menu-label {
        font-family: "Archivo", sans-serif;
        font-variation-settings: "wdth" 125;
        font-weight: 700;
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        writing-mode: vertical-rl;
        text-orientation: mixed;
        white-space: nowrap;
    }

    #side-menu-toggle:hover {
        background-color: #738595;
        animation: none;
    }

    .side-menu.show > #side-menu-toggle {
        background-color: #000;
        animation: none;
    }
}

@keyframes menuPulse {
    0%   { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.5); }
    70%  { box-shadow: 0 0 0 10px rgba(0, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

/* Больший межстрочный интервал для читаемости */
p, li {
    line-height: 1.7;
}
/* Выделение ключевых цифр */
strong, b {
    color: #1a5276; /* или ваш акцентный цвет */
}

