@font-face {
  font-family: 'Stem';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/Stem/400.woff2) format('woff2'),
       url(../fonts/Stem/400.woff) format('woff'),
       url(../fonts/Stem/400.ttf) format('truetype');
}
@font-face {
  font-family: 'StemItalic';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/Stem/400italic.woff2) format('woff2'),
       url(../fonts/Stem/400italic.woff) format('woff'),
       url(../fonts/Stem/400italic.ttf) format('truetype');
}
@font-face {
  font-family: 'StemMedium';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/Stem/500.woff2) format('woff2'),
       url(../fonts/Stem/500.woff) format('woff'),
       url(../fonts/Stem/500.ttf) format('truetype');
}
@font-face {
  font-family: 'StemMediumItalic';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/Stem/500italic.woff2) format('woff2'),
       url(../fonts/Stem/500italic.woff) format('woff'),
       url(../fonts/Stem/500italic.ttf) format('truetype');
}
@font-face {
  font-family: 'StemBold';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/Stem/700.woff2) format('woff2'),
       url(../fonts/Stem/700.woff) format('woff'),
       url(../fonts/Stem/700.ttf) format('truetype');
}
@font-face {
  font-family: 'StemBoldItalic';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/Stem/700italic.woff2) format('woff2'),
       url(../fonts/Stem/700italic.woff) format('woff'),
       url(../fonts/Stem/700italic.ttf) format('truetype');
}

/* 
========================================
   БАЗОВЫЙ СТИЛЬ ДЛЯ КНОПОК (СИНИЙ, КАК НА accouncy.ru)
======================================== */

.btn-primary {
    display: inline-block;
    padding: 18px 45px;
    font-family: inherit;
    font-size: 18px;
    line-height: 1.2;
    color: #ffffff !important;
    text-align: center;
    text-decoration: none !important;

    background: rgb(85, 82, 232);
    border: 1px solid transparent;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    border-color: #ffffff;
    box-shadow: 0 6px 25px rgba(0, 102, 255, 0.4);
    transform: none;
}

.btn-primary:active {
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.2);
    transform: scale(0.98);
}

.buttonMain__link.btn-primary {
    padding: 20px 50px;
    font-size: 20px;
}

.buttonMain__img {
    margin-left: 12px;
    vertical-align: middle;
    filter: brightness(0) invert(1);
    transition: none;
}

.btn-details {
    padding: 12px 35px;
    font-size: 16px;
    background: rgb(85, 82, 232);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
}

.btn-details:hover {
    border-color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.35);
}

.servicesList__btn {
    background-image: none;
}

.arrow_modal {
	display: none;
}

.practics__item {
	color: rgb(85, 82, 232);
	font-family: 'Stem', Arial, sans-serif;
	font-size: 26px;
	font-weight: bold;
}

/* ========================================
   НОВЫЕ СТИЛИ
======================================== */
body {
    overflow-x: hidden;
}

html {
    font-family: 'Stem', Arial, sans-serif;
}

.contactMobile__link {
	font-family: 'Stem', Arial, sans-serif;
	color: rgb(85, 82, 232);
}

.mainScreen {
	margin-left: 0;
	background-size: cover;
}

.titleBlock__text {
	font-family: 'StemBold', Arial, sans-serif;
	font-size: 64px;
	max-width: 50%;
}

.menu-item a {
	font-family: 'Stem', Arial, sans-serif;
	font-size: 18px;
}

.buttonMain__link, .buttonMain__modal {
	font-family: 'Stem', Arial, sans-serif;
}

.aboutCompany__text {
	font-family: 'Stem', Arial, sans-serif;
	line-height: 1.5;
}

.servicesList__title {
	font-family: 'Stem', Arial, sans-serif;
}

.titleNoline__text {
	font-family: 'StemBold', Arial, sans-serif;
}

.advantages__wrapper {
	position: relative;
}

.advantagesList__title {
	font-family: 'StemMedium', Arial, sans-serif;
	width: 100%;
}

.advantagesList__opisanie {
	font-family: 'Stem', Arial, sans-serif;
	line-height: 1.5;
}

.contactForm__input, .contactForm__link, .navList__item, .copyright__text, .nav__link {
	font-family: 'Stem', Arial, sans-serif;
}

.popup-close {
	top: 15px;
	right: 15px;
}

.headerModal__title {
	font-family: 'StemBold', Arial, sans-serif;
}

.bodyModal__text {
	font-family: 'Stem', Arial, sans-serif;
}

#nav li a {
	font-family: 'Stem', Arial, sans-serif;
}

.boxBack {
	margin-top: 0;
	height: 100%;
}

.titleConsult {
	margin-top: 250px;
    margin-bottom: 50px;
}

/* ========================================
   ИСПРАВЛЕНИЕ МОДАЛЬНОГО ОКНА
======================================== */

/* Черта под заголовком - корректные отступы */
.headerModal {
    position: relative;
    padding-bottom: 35px;
    margin-bottom: 30px;
}

.headerModal::after {
    position: absolute;
    left: 0;
    bottom: 0;
    display: block;
    width: 60%;
    height: 1px;
    content: '';
    background-color: #000;
}

/* Убираем лишние отступы в модалке */
.bodyModal {
    padding-top: 0;
    padding-bottom: 0;
}

.modal-window__footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* ========================================
   ФИОЛЕТОВЫЕ ГАЛОЧКИ ДЛЯ СПИСКОВ В МОДАЛЬНЫХ ОКНАХ
======================================== */

/* Убираем стандартные маркеры списка */
.bodyModal__text {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* Стили для элементов списка */
.bodyModal__item,
.bodyModal__text li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 14px;
    font-size: 18px;
    line-height: 1.5;
    color: #2d2d2d;
}

/* Создаем красивую фиолетовую галочку (уменьшенную в 2 раза) */
.bodyModal__item::before,
.bodyModal__text li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    background: rgb(85, 82, 232);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Рисуем белую галочку внутри круга (уменьшенную) */
.bodyModal__item::after,
.bodyModal__text li::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 6px;
    width: 8px;
    height: 5px;
    border-left: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(-45deg);
}


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

/* Планшеты и небольшие ноутбуки (до 960px) */
@media screen and (max-width: 960px) {
	.contactMobile {
		margin-left: 20px;
	}
	
    /* О компании */
    .blockImg__back {
        display: none;
    }
    
    .blockImg__picture {
        margin-left: 20px;
    }
    
    .aboutCompany__title {
        margin-left: 30px;
    }
    
    .aboutCompany__text {
        width: 90%;
    }
	
	.blockImg__picture img {
        width: 100%;
    }
    
    /* Навигация */
    .navContainer,
    .navWrapper {
        margin-right: 15px;
        justify-content: flex-start;
    }
}

/* iPad разные (до 800px) */
@media screen and (max-width: 800px) {
	/* Услуги - адаптивная сетка */
    .servicesList {
        justify-content: center;
    }
    
    .servicesList__item {
        width: 45%;
        min-height: 350px;
    }
}

/* Мобильные устройства (до 650px) */
@media screen and (max-width: 650px) {
	.mainScreen {
        margin-left: 0;
        margin-right: 0;
        padding: 40px;
    }
	
	.mainScreen__wrapper {
        padding-left: 0;
    }
	
	.titleBlock__text {
		font-size: 48px;	
	}
	
    /* Услуги */
    .servicesList__item {
        width: 100%;
        min-height: 300px;
    }
    
    /* Преимущества */
    .advantagesList__item {
        width: 100%;
        min-height: 120px;
        margin-top: 30px;
    }
	
	.advantagesList__item-order1 {
        color: #fff;
		-webkit-box-ordinal-group: 2;
        -webkit-order: 1;
        order: 1;
    }
    
    .advantagesList__title {
        width: 100%;
    }
    
    .advantagesList__opisanie {
        line-height: 1;
    }
	
	.boxBack {
        width: 100%;
    }
    
    /* Футер */
    .footer__block {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .navList {
        width: 100%;
        text-align: center;
    }
    
    /* Заголовки */
    .titleNoline__text {
        font-size: 32px;
    }
    
    .titleConsult {
        margin-top: 100px;
        font-size: 32px;
    }
    
    /* Кнопки */
    .btn-primary {
        padding: 14px 30px;
        font-size: 16px;
        width: 100%;
        text-align: center;
    }
    
    .buttonMain__link.btn-primary {
        padding: 16px 30px;
        font-size: 18px;
        width: 100%;
    }
    
    /* Модальное окно */
    .headerModal {
        padding-bottom: 25px;
        margin-bottom: 20px;
    }
    
    .headerModal::after {
        width: 80%;
    }
	
	.headerModal__title {
        font-size: 32px;
    }
    
    .bodyModal {
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Галочки в модалке */
    .bodyModal__item,
    .bodyModal__text li {
        padding-left: 28px;
        margin-bottom: 12px;
        font-size: 16px;
    }
    
    .bodyModal__item::before,
    .bodyModal__text li::before {
        width: 16px;
        height: 16px;
        top: 2px;
    }
    
    .bodyModal__item::after,
    .bodyModal__text li::after {
        left: 4px;
        top: 5px;
        width: 7px;
        height: 4px;
        border-width: 2px;
    }
}

/* Маленькие телефоны (до 480px) */
@media screen and (max-width: 480px) {
    /* Главный экран */
    .mainScreen {
        margin-left: 0;
        margin-right: 0;
        padding: 20px;
    }
    
    .mainScreen__wrapper {
        padding-left: 0;
    }
    
    .titleBlock__text {
        font-size: 36px;
        max-width: 100%;
    }
    
    .mainScreen__button-block {
        padding-bottom: 80px;
    }
    
    /* О компании */
    .aboutCompany {
        flex-wrap: wrap;
        margin-top: 30px;
    }
    
    .aboutCompany__title {
        margin-left: 0;
        padding: 20px;
    }
    
    .aboutCompany__text {
        width: 100%;
    }
    
    .blockImg__picture {
        margin-left: 0;
    }
    
    .blockImg__picture img {
        width: 100%;
    }
    
    /* Заголовки */
    .titleConsult {
        margin-top: 50px;
        font-size: 28px;
    }
    
    /* Навигация */
    .navContainer,
    .navWrapper {
        margin-top: 0;
        padding: 0 15px;
    }
    
    .contactMobile {
        margin-top: 15px;
    }
    
    .contactMobile__link {
        font-size: 16px;
        padding-top: 15px;
        font-family: 'Stem', Arial, sans-serif;
    }
    
    /* Футер */
    .footer {
        margin-top: 20px;
    }
    
    .footer__block {
        flex-wrap: wrap;
        gap: 20px;
        padding-top: 40px;
    }
    
    .copyright {
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 30px;
        text-align: center;
        justify-content: center;
    }
    
    .copyright__text {
        font-size: 14px;
    }
    
    /* Модальное окно */
    .headerModal {
        padding-bottom: 20px;
        margin-bottom: 15px;
    }
    
    .headerModal__title {
        font-size: 28px;
    }
    
    .headerModal::after {
        width: 90%;
    }
    
    .modal-window__footer .buttonMain {
        flex-direction: column;
        align-items: stretch;
    }
    
    .arrow_modal {
        display: none !important;
    }
    
    .buttonMain__modal {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
    }
    
    /* Галочки в модалке */
    .bodyModal__item,
    .bodyModal__text li {
        padding-left: 24px;
        margin-bottom: 10px;
        font-size: 15px;
    }
    
    .bodyModal__item::before,
    .bodyModal__text li::before {
        width: 14px;
        height: 14px;
        top: 2px;
    }
    
    .bodyModal__item::after,
    .bodyModal__text li::after {
        left: 4px;
        top: 4px;
        width: 6px;
        height: 4px;
        border-width: 1.5px;
    }
}

/* Очень маленькие телефоны (до 360px) */
@media screen and (max-width: 360px) {
    /* Галочки в модалке */
    .bodyModal__item,
    .bodyModal__text li {
        padding-left: 20px;
        margin-bottom: 8px;
        font-size: 14px;
    }
    
    .bodyModal__item::before,
    .bodyModal__text li::before {
        width: 12px;
        height: 12px;
        top: 1px;
    }
    
    .bodyModal__item::after,
    .bodyModal__text li::after {
        left: 3px;
        top: 3px;
        width: 5px;
        height: 3.5px;
        border-width: 1.5px;
    }
}