/* Reset & Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Montserrat", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    background: none;
    border: none;
    cursor: pointer;
}

/* Variables */
:root {
    --color-primary: #0066FF;
    --color-primary-dark: #004AFF;
    --color-black: #000;
    --color-white: #fff;
    --color-light-gray: #f5f5f5;
    --color-gray: #ccc;
    --transition-fast: 0.2s ease;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4 {
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1.15rem;
}

p {
    margin-bottom: 1rem;
}

/* BUTTONS */
.btn {
    display: inline-block;
    border-radius: 0.5rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn--primary {
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border: none;
    font-family: "Montserrat", sans-serif;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn--large {
    font-size: 1.125rem;
}

/* HEADERS */
.header {
    width: 100%;
    left: 0;
    z-index: 200;
}

.header--default {
    position: absolute;
    top: 0;
    color: var(--color-white);
}

.header--fixed {
    position: fixed;
    top: 0;
    background-color: var(--color-white);
    color: #333;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.header--fixed.visible {
    transform: translateY(0);
}

.header__container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header .logo p {
    color: #FFF;
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0;
    vertical-align: super;
}

.header .logo p span {
    color: #2E55F2;
}

.header .logo p.light-logo {
    color: #000;
}

.logo img {
    height: 32px;
    display: inline-block;
    margin-right: 1rem;
}

.nav--desktop .nav__list {
    display: flex;
    gap: 2rem;
}

.nav__link {
    font-weight: 500;
    color: inherit;
    transition: color var(--transition-fast);
    font-size: 14px;
}

.nav__link:hover {
    color: var(--color-primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.hamburger span {
    display: block;
    height: 3px;
    background: #FFF;
    border-radius: 2px;
    transition: background var(--transition-fast);
}


@media screen and (max-width: 1066px) {
    .nav--desktop .nav__list {
        gap: 1rem;
    }

    .nav__link {
        font-weight: 700;
        font-size: 12px;
    }

    .btn--primary {
        font-size: 12px;
        font-weight: 700;
        padding: 0.6rem 1rem;
    }

    .header__container {
        padding: 1rem 1rem;
    }

    .logo img {
        margin-right: 0.5rem;
        height: 29px;
    }

    .header .logo p {
        font-size: 14px;
    }

}

/* MOBILE MENU */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-black);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 150;
}

.mobile-menu.visible {
    transform: translateX(0);
}

.mobile-menu__list {
    padding: 6rem 2rem 1rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu__link {
    color: var(--color-white);
    font-size: 1.2rem;
    padding: 0.75rem 1rem;
}

.mobile-menu__link.btn {
    margin-top: 1.5rem;
}

/* HERO SECTION */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12rem 1rem 8rem 1rem;
    background: var(--color-black);
    color: var(--color-white);
    text-align: center;
    background-image: url('../img/hero_back.jpg');
    background-size: cover;
    background-position: center;
}

.hero__content {
    flex: 1;
    z-index: 1;
    max-width: 1060px;
}

.hero__title {
    font-size: 3rem;
    line-height: 1.2;
}

.hero__title span {
    color: var(--color-primary);
}

.hero__subtitle {
    margin: 1.5rem 0;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
}

.hero__image {
    flex: 1;
    text-align: right;
}

.hero__image img {
    width: 100%;
    max-width: 600px;
    opacity: 0.9;
}

/* SECTIONS */
.section {
    padding: 4rem 1rem;
    max-width: 1600px;
    margin: 0 auto;
}

.section__title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.section__title span {
    color: var(--color-primary);
}

/* SERVICES GRID */
.services__grid {
    display: block;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
}

.service {
    display: inline-block;
    text-align: left;
    width: 30%;
    margin: 1rem;
}

.service.service-2 {
    width: 60%;

}
.section.services {
    text-align: center;
}
.service:first-child {
    background: var(--color-black);
    color: var(--color-white);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.service:first-child .service__icon {
    background: var(--color-white);
    padding: 0.75rem;
    border-radius: 0.25rem;
    display: block;
    width: 55px;
}

.service__icon img,
.service__icon svg {
    
}

img.service-image {
    width: 50%;
    display: inline-block;

}

.service__title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 0.6rem;
}

.service__list {
    list-style: disc inside;
    font-size: 0.95rem;
    display: inline-block;
}

.service-text-block {
    display: inline-block;
    width: 49%;
    text-align: left;
}

.service:not(:first-child) .service__icon {
    flex-shrink: 0;
    display: inline-block;
}

@media screen and (max-width: 768px) {
    .services__grid {
        grid-template-columns: 1fr;
    }

    .service {
        width: 100%;
        margin: 0.5rem 0;
        text-align: center;
    }

    .service.service-2 {
        width: 100%;
    }

    img.service-image {
    width: 100%;
}

    .service-text-block {
        width: 100%;
        text-align: center;
    }
    .service__icon {
        display: block;
        margin: 0 auto;
    }
    .service__icon img,
    .service__icon svg {
        width: 50px;
        height: 50px;
        display: inline-block;
    }
    .service__title {
        text-align: center;
    }
    .service__list {
        text-align: center;
        width: 100%;
    }
    
}


/* HOW IT WORKS */
.how-it-works__steps {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.step-item {
    text-align: center;
    flex: 1;
    min-width: 250px;
    padding: 1rem;
    vertical-align: top;
}

.step-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    display: inline-block;
}

.step-item__title {
    margin-bottom: 0.5rem;
}

.step-item__desc {
    font-size: 0.95rem;
    color: #666;
}

/* WHY CHOOSE */
.why-choose {
    background: var(--color-black);
    color: var(--color-white);
}

.why-choose__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
}
.feature img {
    display: inline-block;
}

.feature__icon img,
.feature__icon svg {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
}
.how-it-works {
    background: #f5f5f5;
}

.feature__title {
    margin-bottom: 0.5rem;
}

.feature__desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

/* ABOUT SECTION */
.about__content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.about__text {
    flex: 1;
}

.about__image {
    flex: 1;
    text-align: right;
}

.about__image img {
    max-width: 100%;
    border-radius: 0.5rem;
}

/* REVIEWS SLIDER */
.reviews__container {
    position: relative;
    overflow: hidden;
}

.reviews__track {
    display: flex;
      transition: transform 0.5s ease-in-out;
  touch-action: pan-y;
}

.reviews__slide {
    flex: 0 0 100%;
    padding: 2rem;
    text-align: center;
}

.reviews__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.reviews__name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.reviews__position {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.reviews__text {
    font-style: italic;
    color: #444;
}

.reviews__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 1);
    color: #fff;
    padding: 0.5rem;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    z-index: 2;
}
.reviews__nav:hover {
    background: rgba(0, 0, 0, 0.6);
}

.reviews__nav--prev {
    left: 1rem;
}

.reviews__nav--next {
    right: 1rem;
}


@media screen and (max-width: 768px) {
    .reviews__slide {
        padding: 0rem;
    }

    .reviews__avatar {
        width: 60px;
        height: 60px;
    }

    .reviews__name {
        font-size: 1.1rem;
    }

    .reviews__position {
        font-size: 0.85rem;
    }

    .reviews__text {
        font-size: 0.95rem;
    }
    
}

/* CONTACT SECTION */
.contact {
    background: var(--color-black);
    color: var(--color-white);
}

.contact__wrapper {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact__info {
    flex: 1;
}

.contact__info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact__info a {
    color: inherit;
    font-weight: 500;
}

.contact__form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 46vw;
}

.input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: var(--color-white);
    transition: border-color var(--transition-fast);
    font-family: "Montserrat", sans-serif;
}

.input:focus {
    border-color: var(--color-primary);
    outline: none;
}

/* FOOTER */
.footer {
    background: #111;
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__container p.footer-logo {
    color: #FFF;
    display: inline-block;
    vertical-align: super;
    font-weight: 700;
    font-size: 18px;
}

.footer__container p.footer-logo span {
    color: #2E55F2;
}

.nav--footer .nav__list {
    display: flex;
    gap: 1.5rem;
}

.nav--footer .nav__link {
    color: inherit;
    font-size: 0.9rem;
}

.footer__copy {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.contact__wrapper .btn.btn--primary {
    font-size: 20px;
    font-weight: 500;
}
.contact.contact-page {
    height: 100vh;
    padding: 4rem 1rem 6rem 1rem;
    background-image: url('../img/contact.jpg');
    background-size: cover;
    background-position: center;
}





/* по-умолчанию скрываем контейнер с благодарностью */
.hidden {
  display: none;
}

/* стили для блока «Спасибо» */
.thank-you {
  text-align: center;
  padding: 2rem;
}

/* сам SVG-иконка */
.check-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: scale(0);
  animation: scaleUp 0.4s ease-in-out forwards;
}

/* круговая анимация */
.check-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: strokeCircle 0.6s ease-in-out forwards;
}

/* «чек» анимация */
.check-path {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: strokeCheck 0.3s 0.6s ease-in-out forwards;
}

/* ключевые кадры */
@keyframes strokeCircle {
  to { stroke-dashoffset: 0; }
}
@keyframes strokeCheck {
  to { stroke-dashoffset: 0; }
}
@keyframes scaleUp {
  to { transform: scale(1); }
}

/* текст благодарности */
.thank-you h3 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.thank-you p {
  color: #666;
}
.hero.legal-page {
    background-image: url('../img/legal.jpg');
    background-size: cover;
    background-position: center;
}





@media screen and (max-width: 768px) {
    .section__title {
    margin-bottom: 1rem;
    font-size: 2rem;
}
    .contact.contact-page {
    padding: 3rem 0rem 1rem 0rem;
    height: auto;
}
    .contact__form {
    width: 100%;
}
    .footer__container {
        flex-direction: column;
        align-items: center;
    }
    .contact__info {
        width: 100%;
        display: block;
    }

    .contact__wrapper {
        display: block;
    }
    .nav--footer .nav__list {
        flex-direction: column;
        align-items: center;
    }

    .nav--footer .nav__link {
        margin-bottom: 0.5rem;
    }
    .footer__copy {
        text-align: center;
        margin-top: 1rem;
    }

    
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 992px) {

    .services__grid,
    .why-choose__grid {
        grid-template-columns: 1fr;
    }

    .about__content {
        flex-direction: column;
        text-align: center;
    }

    .about__image {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero__title {
    font-size: 2rem;
    line-height: 1.2;
}
.hero__subtitle {
    margin: 1.5rem 0;
    font-size: 1rem;
}
    h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1rem;
}

p {
    font-size: 14px;
}
    .nav--desktop {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 6rem 1rem 5rem 1rem;
    }

    .hero__image {
        margin-top: 2rem;
    }

    .how-it-works__steps {
        flex-direction: column;
    }
}

@media (max-width: 576px) {

    .header__container,
    .section {
        padding: 1rem;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 2rem;
    }

    .btn--primary {
        padding: 1rem 0.6rem;
    }
    #home .btn--primary {
        padding: 0.75rem 1.2rem;
                font-size: 16px;
    }
    #hamburger-fixed span {
        background: #000;
    }
}