/* =========================================
   CSS Variables & Reset
   ========================================= */

@font-face {
    font-family: 'PT Root UI VF';
    src: url('fonts/ptrootuivf.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --container: min(95vw, 1340px);
    --gap: 1.5rem;
    
    --landing-textcolor: #373a36;
    --landing-primarycolor: #fd5100;
    --landing-secondarycolor: #7f94a8;
    --landing-thirdcolor: #d5d5d5;
    --landing-cardcolor-1: #ffffff;
    --landing-cardcolor-2: #fff1eb;
    --landing-cardcolor-3: #edf3f4;
    --landing-cardcolor-4: #fff9ee;
    --landing-basementcolor: #f8f8f8;

  --font-family: "Golos Text", sans-serif;
  --second-family: "PT Root UI VF", sans-serif;
  --third-family: "Roboto", sans-serif;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--landing-textcolor);
    line-height: 1.5;
    background-color: #fff;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: var(--landing-primarycolor);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--landing-primarycolor);
    filter: brightness(0.9);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--landing-primarycolor) transparent;
}

/* =========================================
   Reusable Classes
   ========================================= */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
    border-radius: 12px;
    padding: 20px 34px;
    background: var(--landing-primarycolor);
    font-family: var(--second-family);
    font-weight: 500;
    font-size: clamp(12px, 2vw, 20px);
    text-align: center;
    color: var(--landing-cardcolor-1);
}

.btn:hover {
    opacity: 0.85;
}

.btn:active {
    transform: scale(0.98);
}

/* =========================================
   Header
   ========================================= */
.header {
    padding: 2.094rem 0;
    border-bottom: 0.80px solid var(--landing-thirdcolor);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    transition: transform 0.3s ease;
}

.header--hidden {
    transform: translateY(-100%);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
}

.header_start {
    display: flex;
    justify-content: flex-start;
    flex-direction: row;
    align-items: center;
    gap: 3.5rem;
}

.logo img {
    display: block;
    height: 50px;
    width: 234px;
}

.nav {
    display: flex;
    gap: 2.5rem;
}

.nav a {
    text-decoration: none;
    font-family: var(--second-family);
    font-weight: 500;
    font-size: clamp(12px, 2vw, 20px);
    text-align: center;
    color: var(--landing-textcolor);
    transition: color 0.2s;
}

.nav a:hover, .footer__col a:hover, .contacts__form-wrapper a:hover {
    color: var(--landing-primarycolor);
}

.header__cta {
    color: var(--landing-primarycolor);
    text-decoration: none;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: clamp(12px, 2vw, 20px);
    transition: opacity 0.2s;
}

.header__cta:hover {
    opacity: 0.7;
}

/* =========================================
   Hero
   ========================================= */
.hero {
    padding: 5rem 0 6rem 0;
}

.hero__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
}

.hero__content {
    width: 65%;
}

.hero__content h1 {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: clamp(18px, 5vw, 40px);
    color: var(--landing-textcolor);
    line-height: 1.1;
    text-transform: uppercase;
}

.hero__content .btn {
    margin: 1.25rem 0;
}

.hero__number {
    font-size: clamp(12px, 1.8vw, 18px);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.hero__number a {
    color: var(--landing-primarycolor) !important;
    text-decoration: none;
    margin: 0 !important;
    position: relative; /* Нужно для позиционирования псевдоэлемента */
}

/* Создаем линию */
.hero__number a::after {
    content: '';
    position: absolute;
    bottom: 0; /* Расположение линии снизу (можно поменять на -2px, если нужно чуть ниже) */
    left: 0;
    width: 100%;
    height: 1px; /* Толщина линии */
    background-color: var(--landing-primarycolor);

    /* Скрываем линию, сжимая по горизонтали до 0 */
    transform: scaleX(0);
    transition: transform 0.3s ease;

    /* Точка, из которой выезжает линия. Если убрать — будет из центра. */
    transform-origin: left;
}

/* При наведении возвращаем линию */
.hero__number a:hover::after {
    transform: scaleX(1);
}

.hero__image {
    width: 35%;
    display: flex;
    justify-content: flex-end;
    margin: 0 5% 0 0;
}

.hero__image img {
    width: 100%;
    max-width: 362px;
    height: auto;
    object-fit: contain;
}

/* =========================================
   Conditions
   ========================================= */
.conditions {
    padding: 0;
}

.conditions__grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    grid-auto-rows: auto;
    gap: var(--gap);
    width: 100%;
}

.conditions__item {
    border-radius: 12px;
    padding: 1.875rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 13.75rem;
    position: relative;
    min-width: 50%;
    overflow: hidden;
}

.conditions__item--orange {
    background-color: var(--landing-cardcolor-2);
    grid-row: 1 / 3;
}

.conditions__item--white {
    background: var(--landing-cardcolor-4);
}

.conditions__item--blue {
    background-color: var(--landing-cardcolor-3);
}

.conditions__item--white,
.conditions__item--blue {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.conditions__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 100%;
}

.condition-img {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.conditions__number {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: clamp(18px, 4vw, 36px);
    line-height: 112%;
    color: var(--landing-textcolor);
}

.conditions__item img {
    height: auto;
    object-fit: contain;
    transition: transform 0.45s ease;
}

.conditions__item:hover img {
    transform: scale(1.1) rotate(-10deg);
}

.conditions__item--white img {
    width: auto;
    height: 248px;
}

.conditions__text {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: clamp(12px, 2vw, 24px);
    color: var(--landing-textcolor);
    max-width: 100%;
}

/* =========================================
   Services
   ========================================= */
.services {
    padding: 6rem 0 0;
}

.services__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.services__title-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.services h2 {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: clamp(18px, 4vw, 36px);
    line-height: 112%;
    color: var(--landing-textcolor);
    text-transform: uppercase;
    margin: 0;
}

.services__badge svg {
    width: 50px;
    height: auto;
    transition: transform 0.45s ease;
}

.services__badge:hover svg {
    transform: scale(1.1) rotate(-10deg);
}

.services__subtitle {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: clamp(12px, 2vw, 24px);
    color: var(--landing-textcolor);
    margin-bottom: 2rem;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.services__step {
    box-shadow: 0 3px 50px 0 rgba(10, 1, 44, 0.05);
    background: var(--landing-cardcolor-1);
    border-radius: 12px;
    padding: 1.875rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    transition: transform 0.3s ease;
}

.services__step:hover {
    transform: translateY(-0.3125rem);
}

.services__step-number {
    width: 102px;
    height: 102px;
    border-radius: 100%;
    background-color: var(--landing-cardcolor-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: clamp(18px, 5vw, 40px);
    line-height: 112%;
    text-transform: uppercase;
    color: var(--landing-textcolor);
    margin-bottom: 1.25rem;
}

.services__step-content strong {
    display: block;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: clamp(12px, 2vw, 22px);
    color: var(--landing-textcolor);
    margin-bottom: 0.625rem;
    line-height: 1.4;
}

.services__step-content span {
    font-family: var(--font-family);
    font-weight: 400;
    color: var(--landing-textcolor);
    display: block;
    line-height: 1.4;
    font-size: clamp(12px, 2vw, 18px);
}

.services__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: clamp(18px, 3vw, 32px);
    text-align: left;
    color: var(--landing-cardcolor-1);
    border-radius: 8px;
    padding: 20px 40px;
    background: var(--landing-secondarycolor);
    margin: 1.5rem 0 0;
}

.condition__badge {
    display: none;
}

/* =========================================
   Contacts
   ========================================= */
.contacts {
    padding: 6rem 0 5rem 0;
}

.contacts__inner {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    align-items: center;
}

.contacts__form-wrapper {
    width:60%;
    max-width: 665px;
}

.form-btn-wrapper {
    display: flex;
    width: 100%;
    justify-content: center;
}

.contacts h2 {
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: clamp(18px, 4vw, 36px);
    line-height: 112%;
    color: var(--landing-textcolor);
}

.contacts__form-wrapper p, .contacts__form-wrapper a {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: clamp(12px, 2vw, 24px);
    color: var(--landing-textcolor);
    margin-bottom: 1.5rem;
    text-decoration: none;
    transition: color 0.2s;
}

.contacts__form-wrapper .hero__number {
    font-size: clamp(12px, 2vw, 24px);
}

.contacts__form-wrapper p {
    margin-bottom: 0.5rem;
}

.form {
    margin: 2rem 0 0;
}

.form__field {
    position: relative;
    margin-bottom: 1rem;
}

.form input[type="text"],
.form input[type="tel"],
.form input[type="email"] {
    width: 100%;
    font-family: var(--font-family);
    font-size: clamp(12px, 2vw, 22px);
    outline: none;
    background-color: var(--landing-cardcolor-1);
    border: 1px solid var(--landing-textcolor);
    border-radius: 12px;
    padding: 2rem 1.5rem 1rem;
    height: 80px;
    box-sizing: border-box;
    transition: border-color 0.2s;
    color: var(--landing-textcolor);
}

.form input::placeholder {
    color: transparent;
    transition: color 0.2s;
}

.form__field label {
    position: absolute;
    top: 50%;
    left: 1.5rem;
    transform: translateY(-50%);
    font-family: var(--font-family);
    font-weight: 400;
    font-size: clamp(12px, 1.8vw, 18px);
    color: var(--landing-textcolor);
    pointer-events: none;
    background-color: var(--landing-cardcolor-1);
    padding: 0 0.5rem;
    transition: all 0.2s ease;
    line-height: 1;
}

.form input:focus + label,
.form input:not(:placeholder-shown) + label {
    top: 0;
}

.form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.875rem;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: clamp(12px, 1.8vw, 18px);
    color: var(--landing-textcolor);
}

.form__checkbox a {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: clamp(12px, 1.8vw, 18px);
    color: var(--landing-textcolor);
    text-decoration: none;
}

.form__checkbox input {
    margin-top: 0.25rem;
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--landing-primarycolor);
}

.form__checkbox label {
    cursor: pointer;
}

.contacts__image {
    width: 40%;
    display: flex;
    justify-content: flex-end;
}

.contacts__image img {
    width: 100%;
    max-width: 520px;
    height: auto;
    object-fit: contain;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: var(--landing-basementcolor);
    padding: 3rem;
}

.footer__links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;

}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 1rem;

}

.footer__col a, .footer__copy {
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.4;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: clamp(12px, 1.6vw, 20px);
    color: var(--landing-textcolor);
}

.pc-hide {
    display: none;
}

.phone-icon {
    width: 26px;
    height: 26px;
}

.max-icon {
    width: 27px;
    height: 27px;
}

.custom-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateX(120%);
    transition: transform 0.4s ease, opacity 0.4s ease;
    max-width: 400px;
}

.custom-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.custom-notification--success {
    background-color: #28a745; /* Зеленый цвет для успеха */
}

.custom-notification--error {
    background-color: #dc3545; /* Красный цвет для ошибки */
}

/* =========================================
   Responsive (Adaptive) Design
   ========================================= */

@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services__grid > *:nth-child(3) {
        grid-column: 1 / -1;
        margin: 0 auto;
        width: calc(50% - 10px);
    }

    .hero__image {
        margin: 0;
    }
    
    .contacts__inner {
        gap: 2.5rem;
    }

    .services__badge {
        display: none;

    }

    .condition__badge {
        display: inline-flex;
    }
}

@media (max-width: 768px) {

    .container {
        padding: 0.5rem;
    }

    /* Header */
    .header__inner {
        flex-wrap: wrap;
        position: relative;
    }

    .header {
        padding: 1.5rem 0;
    }

    .header__cta {
        border: 0.50px solid var(--landing-primarycolor);
        border-radius: 100px;
        padding: 5px 10px;
    }

    .nav {
        display: none !important;
    }
    
    .header__cta {
        margin-left: 0;
    }

    .logo img {
        height: 30px;
        width: 140px;
    }

    .btn {
        border-radius: 4px;
        padding: 11px 18px;
    }

    /* Hero */
    .hero {
        padding: 2rem 0;
    }

    .hero__content {
        max-width: 100%;
        width: 60%;
    }
    .hero__inner {
        gap: 0;
    }

    /* Conditions */
    .conditions__item { border-radius: 4px; }

    .conditions__item--blue { grid-area: blue; }
    .conditions__item--white { grid-area: white; }
    .conditions__item--orange { grid-area: orange; }

    .conditions__grid {
        grid-template-columns: 3fr 2fr;
        grid-template-areas:
            "blue white"
            "orange orange";
        gap: 0.75rem;
        width: 100%;
    }

    .conditions__item--orange {
        grid-row: auto;
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "num img"
            "text img";
        align-items: center;
        gap: 0.25rem 1rem;
        padding: 1.25rem;
        min-height: auto;
    }

    .conditions__item--orange .conditions__number {
        grid-area: num;
        text-align: left;
        font-size: clamp(16px, 3.5vw, 28px);
    }

    .conditions__item--orange .conditions__text {
        grid-area: text;
        text-align: left;

        max-width: 100%;
    }

    .conditions__item--orange .condition-img {
        grid-area: img;
        justify-self: end;
        align-self: center;
        margin: 0;
        flex-shrink: 0;
    }

    .conditions__item--white,
    .conditions__item--blue {
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        padding: 1.25rem;
        min-height: auto;
        gap: 0.25rem;
    }

    .conditions__item--white .conditions__content,
    .conditions__item--blue .conditions__content {
        width: 100%;
        height: auto;
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .conditions__item--white .condition-img,
    .conditions__item--blue .condition-img {
        align-self: center;
        margin-top: 0.5rem;
        flex-shrink: 0;
    }

    .conditions__item img {
        width: 90px;
        height: auto;
        object-fit: contain;
    }

    .conditions__item--white img {
        width: 95px;

    }

    .conditions__item--orange img {
        width: 80px;
    }

    .condition__badge {
        margin-top: 1rem;
        height: 46px;
        border-radius: 4px;
        padding: 14px 16px;
    }

    .services__badge svg {
        width: 30px;
    }

    /* Services */

    .services {
        padding: 3rem 0 0;
    }

    .services__grid > *:nth-child(3) {
        width: 100%;
    }

    .services__step-number {
        width: 70px;
        height: 70px;
    }

    .services__step > div:first-child {
        align-self: flex-end;
    }

    .services__step > div:nth-child(2) {
        align-self: flex-start;
    }
    
    .services__title-wrapper {
        width: 100%;
        justify-content: space-between;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

.services__step {
    display: flex;
    flex-direction: row; 
    justify-content: flex-start; 
    align-items: flex-start;;
    gap: 1rem;
    padding: 1.5rem;
    min-height: 78px;
	border-radius: 4px;
}

.services__step-number {
    position: static;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    margin: 0;
    z-index: 1;
}
.services__step-content {
    margin-top: 0; 
    width: auto; 
    flex: 1; 
}

.services__step > div:first-child,
.services__step > div:nth-child(2) {
    align-self: auto; 
}
    .services__step-content strong, .services__step-content span {
        max-width: 85%;
    }
    .step-content_first strong {
        margin: 0;
    }

    /* Contacts */
    .contacts {
        padding: 2rem 0;
    }

    .contacts__form-wrapper {
        max-width: 100%;
        width: 100%;
    }
    
    .contacts__image {
        display: none;
    }

    .form input[type="text"], .form input[type="tel"], .form input[type="email"] {
        height: 48px;
        border: 0.37px solid var(--landing-textcolor);
        border-radius: 4px;
        padding: 1rem;
    }

    .form__checkbox {
        text-align: left;
        margin-bottom: 1rem;
    }

    /* Footer */
    .footer__links {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .footer__links {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Две равные колонки сверху */
        gap: 1.8rem;
        margin-bottom: 1.8rem;
    }

    /* Вторая колонка (левая верхняя) */
    .footer__links > .footer__col:nth-child(2) {
        order: 1;
    }

    /* Третья колонка (правая верхняя) */
    .footer__links > .footer__col:nth-child(3) {
        order: 2;
    }

    /* Первая колонка (нижняя, на всю ширину) */
    .footer__links > .footer__col:first-child {
        grid-column: 1 / -1; /* Растягиваем с первой до последней колонки */
        order: 3; /* Отправляем вниз */
    }

    .footer {
        padding: 2rem 1rem;
    }
    
    .footer__col {
        flex: none;
    }

    .pc-hide {
        display: inline-block;
    }

    .pc-show {
        display: none;
    }

    .mobile-number {
        display:flex;
        width:100%;
        align-items: center;
        justify-content: center;
    }

    .mobile-number svg, .phone-icon {
        width: 18px;
        height: 18px;
    }

    .max-icon {
        width: 17px;
        height: 17px;
    }
}

@media (max-width: 675px) {
    .services__step-number {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 591px) {
    .services__step-content span {
        max-width: 90%;
    }
    .custom-notification {
        top: auto;
        bottom: 20px;
        right: 10px;
        left: 10px;
        max-width: none;
        text-align: center;
    }
}

@media (max-width: 500px) {
    .services__step-number {
        width: 38px;
        height: 38px;
    }
    .services__step-content span {
        max-width: 100%;
    }
}

@media (max-width: 350px) {
    .footer__links > .footer__col:first-child {
        display: flex;
    }
    .hero__content .btn {
        padding: 6px 9px;
    }
    .services__step-content strong {
        max-width: 80%;
    }
}

@media  (max-width: 342px) {
    .hero__number {
        font-size: 10px;
    }
}

@media  (max-width: 312px) {
    .hero__number {
        font-size: 9px;
    }
}