/* Visible breadcrumb navigation */
.site-breadcrumbs {
    border-bottom: 1px solid #e2e8f0;
    background: #f1f5f9;
}

.site-breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 11px 0;
    list-style: none;
    color: #64748b;
    font-size: 14px;
    line-height: 1.45;
}

.site-breadcrumbs__item {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.site-breadcrumbs__item + .site-breadcrumbs__item::before {
    margin-right: 7px;
    color: #94a3b8;
    content: "›";
}

.site-breadcrumbs a {
    color: #475569;
    text-decoration: none;
}

.site-breadcrumbs a:hover,
.site-breadcrumbs a:focus-visible {
    color: #1367e8;
    text-decoration: underline;
}

.site-breadcrumbs [aria-current="page"] {
    overflow: hidden;
    max-width: min(62vw, 680px);
    color: #0f172a;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .site-breadcrumbs__list {
        padding: 9px 0;
        font-size: 13px;
    }
}

:root {
    --color-bg: #f7f9fc;
    --color-card: #ffffff;

    --color-text: #0f172a;
    --color-muted: #64748b;

    --color-border: #e2e8f0;

    --color-primary: #1367e8;
    --color-primary-dark: #0f56c7;

    --container: 1240px;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --shadow-sm:
        0 6px 20px rgba(15, 23, 42, 0.06);

    --shadow-md:
        0 15px 40px rgba(15, 23, 42, 0.1);
}


/*
|--------------------------------------------------------------------------
| RESET
|--------------------------------------------------------------------------
*/

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--color-bg);

    color: var(--color-text);

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;

    max-width: 100%;
    height: auto;
}

a {
    color: inherit;

    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}


/*
|--------------------------------------------------------------------------
| CONTAINER
|--------------------------------------------------------------------------
*/

.container {
    width: min(
        var(--container),
        calc(100% - 40px)
    );

    margin-inline: auto;
}


/*
|--------------------------------------------------------------------------
| HEADER
|--------------------------------------------------------------------------
*/

.site-header {
    position: sticky;

    top: 0;

    z-index: 1000;

    background:
        rgba(255, 255, 255, 0.96);

    border-bottom:
        1px solid var(--color-border);

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

.site-header__inner {
    min-height: 72px;

    display: flex;

    align-items: center;

    gap: 28px;
}


/*
|--------------------------------------------------------------------------
| LOGO
|--------------------------------------------------------------------------
*/

.site-logo {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.site-logo img {
    display: block;
    width: auto;
    height: 50px;
    object-fit: contain;
    object-position: left center;
}

.site-logo__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1;
}

.site-logo__text strong {
    display: flex;
    align-items: baseline;
    color: #0f172a;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.65px;
    white-space: nowrap;
}

.site-logo__text strong b {
    color: var(--color-primary);
    font-weight: inherit;
}

.site-logo__text small {
    margin-top: 5px;
    color: #475569;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .1px;
    line-height: 1.1;
    white-space: nowrap;
}

.site-logo--custom img {
    max-width: 210px;
}


/*
|--------------------------------------------------------------------------
| NAVIGATION
|--------------------------------------------------------------------------
*/

.site-nav {
    flex: 1;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 28px;
}

.site-nav a {
    position: relative;

    padding: 26px 0;

    font-size: 14px;

    font-weight: 600;

    color: #334155;

    transition:
        color 0.2s ease;
}

.site-nav a:hover {
    color: var(--color-primary);
}

.site-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;

    bottom: 17px;

    height: 2px;

    background: var(--color-primary);

    transform: scaleX(0);

    transform-origin: center;

    transition:
        transform 0.2s ease;
}

.site-nav a:hover::after {
    transform: scaleX(1);
}


/*
|--------------------------------------------------------------------------
| ACCOUNT
|--------------------------------------------------------------------------
*/

.site-header__account {
    display: flex;

    align-items: center;

    gap: 10px;

    flex-shrink: 0;
}


/*
|--------------------------------------------------------------------------
| LOGIN
|--------------------------------------------------------------------------
*/

.header-login {
    padding: 11px 14px;

    font-size: 14px;

    font-weight: 700;

    color: #334155;
}

.header-login:hover {
    color: var(--color-primary);
}


/*
|--------------------------------------------------------------------------
| REGISTER
|--------------------------------------------------------------------------
*/

.header-register {
    padding: 11px 18px;

    border-radius: var(--radius-sm);

    background: var(--color-primary);

    color: #ffffff;

    font-size: 14px;

    font-weight: 700;

    box-shadow:
        0 6px 18px rgba(19, 103, 232, 0.2);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.header-register:hover {
    background: var(--color-primary-dark);

    transform: translateY(-1px);
}


/*
|--------------------------------------------------------------------------
| ACCOUNT DROPDOWN
|--------------------------------------------------------------------------
*/

.account-menu {
    position: relative;
}

.account-menu__button {
    display: inline-flex;
    align-items: center;

    border: 0;

    padding: 11px 16px;

    border-radius: var(--radius-sm);

    background: var(--color-primary);

    color: #ffffff;
    text-decoration: none;

    font-weight: 700;
}

.account-menu__button::after {
    content: "⌄";

    margin-left: 7px;
}

.account-menu__dropdown {
    position: absolute;

    top: calc(100% + 10px);

    right: 0;

    width: 220px;

    padding: 8px;

    background: var(--color-card);

    border:
        1px solid var(--color-border);

    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-6px);

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}

.account-menu:hover
.account-menu__dropdown {
    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);
}

.account-menu__dropdown a {
    display: block;

    padding: 10px 12px;

    border-radius: 8px;

    font-size: 14px;

    font-weight: 600;

    color: #334155;
}

.account-menu__dropdown a:hover {
    background: #f1f5f9;

    color: var(--color-primary);
}


/*
|--------------------------------------------------------------------------
| MAIN
|--------------------------------------------------------------------------
*/

.site-main {
    min-height: 60vh;

    padding: 60px 0;
}


/*
|--------------------------------------------------------------------------
| FOOTER
|--------------------------------------------------------------------------
*/

.site-footer {
    margin-top: 0;

    padding:
        58px
        0
        24px;

    background: #0f172a;

    color: #cbd5e1;
}


/*
|--------------------------------------------------------------------------
| FOOTER GRID
|--------------------------------------------------------------------------
*/

.site-footer__grid {
    display: grid;

    grid-template-columns:
        1.5fr
        1fr
        1fr
        1.2fr;

    gap: 50px;
}


/*
|--------------------------------------------------------------------------
| FOOTER BRAND
|--------------------------------------------------------------------------
*/

.site-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin-bottom: 16px;
}

.site-footer__logo img {
    display: block;
    width: auto;
    height: 50px;
    object-fit: contain;
    object-position: left center;
}

.site-footer__logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.site-footer__logo-text strong {
    display: flex;
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.65px;
    white-space: nowrap;
}

.site-footer__logo-text strong b {
    color: #60a5fa;
    font-weight: inherit;
}

.site-footer__logo-text small {
    margin-top: 5px;
    color: #cbd5e1;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.1;
    white-space: nowrap;
}

.site-footer__logo--custom {
    padding: 6px 9px;
    border-radius: 10px;
    background: #ffffff;
}

.site-footer__logo--custom img {
    max-width: 210px;
}

.site-footer__brand p {
    max-width: 320px;

    margin: 0;

    font-size: 14px;

    line-height: 1.7;

    color: #94a3b8;
}

.site-footer__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.5;
    color: #94a3b8;
}

.site-footer__contacts a {
    transition: color 0.2s ease;
}

.site-footer__contacts a:hover {
    color: #ffffff;
}


/*
|--------------------------------------------------------------------------
| FOOTER COLUMNS
|--------------------------------------------------------------------------
*/

.site-footer__column {
    display: flex;

    flex-direction: column;

    gap: 10px;
}

.site-footer__column h3 {
    margin:
        0
        0
        8px;

    font-size: 14px;

    color: #ffffff;
}

.site-footer__column a {
    width: fit-content;

    font-size: 14px;

    color: #94a3b8;

    transition:
        color 0.2s ease;
}

.site-footer__column a:hover {
    color: #ffffff;
}


/*
|--------------------------------------------------------------------------
| FOOTER BOTTOM
|--------------------------------------------------------------------------
*/

.site-footer__bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 48px;

    padding-top: 22px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.09);

    font-size: 13px;

    color: #cbd5e1;
}

.site-footer__payment-terms {
    color: #bfdbfe;
    text-align: center;
    text-decoration: underline;
    text-decoration-color: rgba(191, 219, 254, .45);
    text-underline-offset: 3px;
}

.site-footer__payment-terms:hover,
.site-footer__payment-terms:focus-visible {
    color: #ffffff;
    text-decoration-color: currentColor;
}


/*
|--------------------------------------------------------------------------
| FOOTER TABLET
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {

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

}


/*
|--------------------------------------------------------------------------
| FOOTER MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 560px) {

    .site-footer {
        padding-top: 44px;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;

        gap: 34px;
    }

    .site-footer__bottom {
        align-items: flex-start;

        flex-direction: column;
    }

}


/*
|--------------------------------------------------------------------------
| TABLET
|--------------------------------------------------------------------------
*/

@media (max-width: 1000px) {

    .site-nav {
        gap: 16px;
    }

    .site-nav a {
        font-size: 13px;
    }

}


/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 820px) {

    .site-header__inner {
        flex-wrap: wrap;

        padding: 14px 0;
    }

    .site-nav {
        width: 100%;

        order: 3;

        justify-content: flex-start;

        overflow-x: auto;

        padding-bottom: 4px;
    }

    .site-nav a {
        padding: 8px 0;

        white-space: nowrap;
    }

    .site-nav a::after {
        bottom: 0;
    }

    .site-header__account {
        margin-left: auto;
    }

}


/*
|--------------------------------------------------------------------------
| SMALL MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 520px) {

    .container {
        width: min(
            100% - 24px,
            var(--container)
        );
    }

    .site-logo {
        gap: 8px;
    }

    .site-logo img {
        width: auto;
        height: 42px;
    }

    .site-logo__text strong {
        font-size: 21px;
    }

    .site-logo__text small {
        font-size: 8.5px;
    }

    .header-register {
        padding: 10px 12px;
    }

    .header-login {
        padding: 10px 6px;
    }

}

/*
|--------------------------------------------------------------------------
| MOBILE NAVIGATION
|--------------------------------------------------------------------------
*/

.site-mobile-navigation {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #ffffff;
}

.site-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    border-radius: 2px;
    background: var(--color-text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 900px) {
    .site-header__inner {
        min-height: 64px;
    }

    .site-menu-toggle {
        display: block;
    }

    .site-mobile-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        max-height: calc(100vh - 64px);
        padding: 16px 20px 22px;
        overflow-y: auto;
        background: #ffffff;
        border-top: 1px solid var(--color-border);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
    }

    .site-header--menu-open .site-mobile-navigation {
        display: block;
    }

    .site-header--menu-open .site-menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-header--menu-open .site-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-header--menu-open .site-menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .site-nav {
        display: grid;
        justify-content: stretch;
        gap: 0;
    }

    .site-nav a {
        padding: 14px 4px;
        border-bottom: 1px solid #edf2f7;
        font-size: 16px;
    }

    .site-nav a::after {
        display: none;
    }

    .site-header__account {
        display: grid;
        gap: 10px;
        margin-top: 16px;
    }

    .header-login,
    .header-register,
    .account-menu__button {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .account-menu__dropdown {
        position: static;
        width: 100%;
        margin-top: 8px;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
    }
}

@media (max-width: 480px) {
    .site-logo img {
        width: auto;
        height: 40px;
    }

    .site-logo__text strong {
        font-size: 20px;
    }

    .site-logo__text small {
        font-size: 8px;
    }

    .container {
        width: min(var(--container), calc(100% - 24px));
    }
}


/*
|--------------------------------------------------------------------------
| EDITABLE FOOTER MENU
|--------------------------------------------------------------------------
*/

.site-footer__menu {
	grid-column: span 3;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 50px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__menu > .menu-item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__menu > .menu-item-has-children > a,
.site-footer__menu > .menu-item-has-children > .site-footer__menu-heading {
	display: inline-block;
	margin: 0 0 18px;
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	pointer-events: none;
}

.site-footer__menu .sub-menu {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__menu .sub-menu li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__menu .sub-menu a {
	display: inline-block;
	width: fit-content;
	color: #94a3b8;
	font-size: 14px;
	transition: color 0.2s ease;
}

.site-footer__menu .sub-menu a:hover {
	color: #ffffff;
}

@media (max-width: 900px) {
	.site-footer__menu {
		grid-column: 1 / -1;
		gap: 34px;
	}
}

@media (max-width: 560px) {
	.site-footer__menu {
		grid-template-columns: 1fr;
	}
}


/*
|--------------------------------------------------------------------------
| ТОЧНЕ ВИРІВНЮВАННЯ КНОПКИ КАБІНЕТУ
|--------------------------------------------------------------------------
*/

.account-menu__button {
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	padding: 11px 18px;
	line-height: 1;
}

.account-menu__button::after {
	content: "";
	width: 7px;
	height: 7px;
	margin: -4px 0 0;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transform-origin: center;
}

/* Facade calculator SEO accordion */
.calculator-seo-content {
	margin: 32px 0 8px;
	padding: 30px;
	background: #ffffff;
	border: 1px solid #dbe4ee;
	border-radius: 18px;
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.calculator-seo-content__intro {
	margin-bottom: 22px;
}

.calculator-seo-content__intro h2 {
	margin: 0 0 12px;
	font-size: clamp(24px, 3vw, 32px);
	line-height: 1.2;
	color: #172033;
}

.calculator-seo-content__intro p {
	margin: 0;
	max-width: 980px;
	color: #52627a;
	line-height: 1.7;
}

.calculator-seo-accordion {
	display: grid;
	gap: 12px;
}

.calculator-seo-item {
	overflow: hidden;
	background: #f8fafc;
	border: 1px solid #d9e2ec;
	border-radius: 14px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.calculator-seo-item:hover,
.calculator-seo-item[open] {
	border-color: #a9c7ec;
	box-shadow: 0 7px 18px rgba(31, 111, 205, 0.08);
}

.calculator-seo-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 18px 20px;
	cursor: pointer;
	list-style: none;
	background: #f8fafc;
	user-select: none;
}

.calculator-seo-item summary::-webkit-details-marker {
	display: none;
}

.calculator-seo-item summary::after {
	content: "";
	flex: 0 0 10px;
	width: 10px;
	height: 10px;
	border-right: 2px solid #55708f;
	border-bottom: 2px solid #55708f;
	transform: rotate(45deg) translateY(-3px);
	transition: transform 0.2s ease;
}

.calculator-seo-item[open] summary {
	background: #eef6ff;
	border-bottom: 1px solid #d9e7f7;
}

.calculator-seo-item[open] summary::after {
	transform: rotate(225deg) translate(-2px, -2px);
}

.calculator-seo-item summary h3 {
	margin: 0;
	font-size: 18px;
	line-height: 1.35;
	color: #172033;
}

.calculator-seo-item__content {
	padding: 18px 20px 20px;
	color: #42526a;
	line-height: 1.7;
	background: #ffffff;
}

.calculator-seo-item__content > :first-child {
	margin-top: 0;
}

.calculator-seo-item__content > :last-child {
	margin-bottom: 0;
}

.calculator-seo-item__content ul,
.calculator-seo-item__content ol {
	margin: 12px 0 0;
	padding-left: 22px;
}

.calculator-seo-item__content li + li {
	margin-top: 5px;
}

@media (max-width: 700px) {
	.calculator-seo-content {
		margin-top: 24px;
		padding: 18px;
		border-radius: 15px;
	}

	.calculator-seo-content__intro h2 {
		font-size: 23px;
	}

	.calculator-seo-item summary {
		padding: 16px;
	}

	.calculator-seo-item summary h3 {
		font-size: 16px;
	}

	.calculator-seo-item__content {
		padding: 16px;
	}
}
