/*
Theme Name: ivani.by
Theme URI: https://ivani.by
Author: Оля Иванюшина
Author URI: https://ivani.by
Description: Чистая тема с базовой архитектурой и возможностью масштабирования
Version: 1.0
*/

@font-face {
    font-family: "Inter";
    src: url("/wp-content/themes/ivani.by/fonts/Inter-Variable.woff2") format("woff2");
    font-weight: 100 900; /* диапазон! */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("/wp-content/themes/ivani.by/fonts/Inter-Variable-Italic.woff2") format("woff2");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

:root {
	--color-old-bright-blue: #36a5cc;
	--color-white: #fff;
    --color-primary-blue: #38749E;
	--color-blue-dark: #152035;
    --color-gray-dark: #161922;
	--color-gray-03: #3C3C3C;
	--color-gray-02: #aaa;
	--color-gray-01: #f7f9fc;
	--color-gray-light: #DFE4ED;
	--color-error: #ED4337;
	--navy-900: #0f1c34;
	--navy-800: #182a4a;
	--navy-700: #243a5e;
	--navy-glow: rgba(255, 255, 255, 0.06);
	--color-turquoise: #e5f8ff;
	
	--header-primary-height: 97px;
	--header-secondary-height: 41px;
	
	--radius-primary: 4px;
	--radius-secondary: 12px;
	--radius-tetriary: 8px;
	
	--gradient-primary: linear-gradient(180deg, #38749E 0%, #2F6388 50%, #255574 100%);
	
	--box-shadow-primary: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ================================
   RESET & BASE STYLES
   ================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    line-height: 1.3;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Inter", sans-serif;
	color: var(--color-gray-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
	display: flex;
    flex-direction: column;
/* 	counter-reset: ol-counter; */
}

/* Медиа */
img, video, svg, canvas, audio, iframe, embed, object {
    display: block;
    max-width: 100%;
}

img, video {
    height: auto;
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

h1 {
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 500;
	line-height: 1.1;
}

h2 {
	font-size: clamp(24px, 3vw, 30px);
	font-weight: 500;
	line-height: 1.1;
}

h3 {
	font-size: clamp(18px, 3vw, 20px);
	font-weight: 500;
	line-height: 1.1;
}

h4 {
	font-size: clamp(16px, 3vw, 18px);
	font-weight: 500;
	line-height: 1.1;
}

h5 {
	font-weight: 500;
	line-height: 1.1;
}

/* Ссылки */
a {
    color: inherit;
    text-decoration: none;
}

/* Списки */
ul {
    padding-left: 1.2em;
}

ul {
    list-style: disc;
}

ul li {
    padding-left: 0;
}

ul li::marker {
    color: var(--color-primary-blue);
}

/* Сброс на ol — каждый новый независимый список с 1 */
ol {
    list-style: none;
    padding-left: 0;
    counter-reset: ol-counter;
}

/* Соседние ol (WordPress разбивает один список на несколько) — не сбрасываем */
ol + ol {
    counter-reset: none;
}

/* Только прямые дочерние li — не трогаем вложенные ul li */
ol > li {
    counter-increment: ol-counter;
    position: relative;
    padding-left: 2em;
}

ol > li::before {
    content: counter(ol-counter) ".";
    position: absolute;
    left: 0;
    font-weight: 500;
    color: var(--color-primary-blue);
}

/* Вложенные ul внутри ol li — сбрасываем лишние отступы */
ol > li > ul {
    margin-top: 8px;
    padding-left: 1.2em;
}

ol > li > ul li {
    padding-left: 0;
}

ol > li > ul li::before {
    content: none;
}
/* Формы */
button, input, select, textarea, optgroup {
    font: inherit;
    color: inherit;
    border: none;
    background: none;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

button {
    cursor: pointer;
    display: inline-block;
}

textarea {
    resize: vertical;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

/* Таблицы */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Разделитель */
hr {
    border: none;
    border-top: 1px solid currentColor;
}

/* Скрытые элементы */
[hidden] {
    display: none !important;
}

/* Выделение текста — опционально, вставьте свой цвет */
::selection {
    background-color: #0095eb;
    color: #fff;
}

/* 
 * Finish Reset
 *  */

.bright-text {
	color: var(--color-primary-blue);
}


.bright-block-1 {
	border-left: 3px var(--color-primary-blue) solid; 
	padding: 8px 0 8px 10px;
}

.nowrap-text {
	text-wrap: nowrap;
	white-space: nowrap;
}

main {
    flex: 1;
	margin-top: var(--header-primary-height);
}

section {
	padding-top: clamp(60px, 6vw, 80px);
	padding-bottom: clamp(60px, 6vw, 80px);
}

.ivani-content-container {
	position: relative;
    z-index: 1;
    max-width: 1207px;
    margin: 0 auto;
    padding: 0 clamp(0px, calc((1380px - 100vw) * 0.1), 16px);
}

    /* Заголовки отдельных страниц */
	.blog-article-section__heading {
		margin-bottom: clamp(60px, 6vw, 80px);
	}

    .functions-section__heading,
	.functions-section__header,
    .consult-section__heading,
    .reasons-section__heading,
    .reviews-section__heading,
    .faq-section__heading,
	.blog-related-article-section__heading,
	.soderzhanie__heading {
        margin-bottom: 20px;
    }

	.blog-article-section h5,
	.svc-long-seo-section h5 {
		margin-bottom: 8px;
		font-weight: 600;
	}

    /* service hero section */
    .service-hero {
        background: var(--color-turquoise);
    }

    .service-hero__inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .service-hero__features {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
        margin-top: 32px;
        width: 100%;
        max-width: 1000px;
    }

    .shf-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        text-align: center;
    }

    .shf-item__icon {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }

    .shf-item__icon img {
        width: 60px;
        height: 60px;
        object-fit: contain;
    }

    @media (max-width: 700px) {
        .service-hero__features {
            grid-template-columns: 1fr;
            max-width: 380px;
        }
    }

    @media (max-width: 600px) {
        .service-hero {
            padding: 0;
        }

        .service-hero .ivani-content-container {
            padding: 40px 20px 50px;
        }
    }

    /* functions section */
    .functions-section {
        background: var(--color-white);
    }

    /* 6 reasons section */
    .reasons-section {
        background: var(--color-white);
    }

    .reasons-section__sub {
        margin-bottom: 20px;
    }

    /* reviews section */
    .reviews-section {
        background: var(--color-gray-01);
    }

    .reviews-section__header {
        margin-bottom: 10px;
    }

	/* ==============================================
   СЕКЦИЯ: FAQ
   ============================================= */
.faq-section {
    background: var(--color-gray-01);
}

.faq-section__heading {
    margin-bottom: 24px;
}

.faq-item {
    background: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-tetriary);
    margin-bottom: 8px;
    list-style: none;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; content: ''; }

.faq-item__trigger {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
}

.faq-item__trigger:focus-visible {
    outline: 2px solid var(--color-primary-blue, #1a6fc4);
    outline-offset: 2px;
    border-radius: 6px;
}

.faq-item__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: 1.5px solid var(--color-primary-blue, #1a6fc4);
    border-radius: 3px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    color: var(--color-primary-blue, #1a6fc4);
}
.faq-item__icon::before {
    content: '+';
    transition: opacity .2s, transform .2s;
}
.faq-item__icon::after {
    content: none;
}
.faq-item[open] .faq-item__icon::before {
    content: '−';
}

.schema_question {
    font-weight: 500;
    color: var(--color-primary-blue);
}

.schema_answer {
    padding: 0 20px 20px 0;
    font-size: 15px;
    border-top: 1px solid var(--color-gray-light);
    margin: 0 20px;
    padding-top: 16px;
}

@media (max-width: 600px) {
    .faq-item__trigger { padding: 14px 16px; }
    .schema_answer { margin: 0 16px; padding-left: 16px; }
}

/* Таблицы */
.simple-table {
	margin: 0 0 8px 0;
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e5e7eb;
    font-size: 14px;
}

.simple-table th,
.simple-table td {
    border: 1px solid #e5e7eb;
    padding: 14px;
    text-align: left;
    vertical-align: top;
}

.simple-table thead th {
    background: #f9fafb;
    font-weight: 600;
}

.simple-table tbody tr:nth-child(even) {
    background: #fcfcfc;
}

/* Адаптив */
@media (max-width: 768px) {
    .simple-table th,
    .simple-table td {
        padding: 10px;
    }
}