/* =========================================================
   ADAPTIVE.CSS
   Адаптивность лендинга КАДАСТРМОСРЕГ
   ========================================================= */


/* =========================================================
   LARGE TABLET / SMALL DESKTOP
   1200px и меньше
   ========================================================= */

@media (max-width: 1200px) {

    .container {
        max-width: 1100px;
    }

    /* HEADER */

    .header .container {
        gap: 20px;
    }

    .menu {
        gap: 20px;
        margin-right: 5px;
    }

    .menu a {
        font-size: 15px;
    }

    .header-right {
        gap: 12px;
    }

    .header-phone a {
        font-size: 16px;
    }

    .header-btn {
        padding: 13px 18px;
    }


    /* HERO */

    .hero .container {
        gap: 40px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-text {
        font-size: 18px;
    }


    /* SERVICES */

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }


    /* ADVANTAGES */

    .advantages-grid {
        gap: 25px;
    }

}


/* =========================================================
   TABLET
   1050px и меньше
   ========================================================= */

@media (max-width: 1050px) {

    /* HEADER */

    .header .container {
        gap: 15px;
    }

    .logo-title {
        font-size: 19px;
    }

    .logo-subtitle {
        font-size: 12px;
    }

    .logo img {
        height: 42px;
    }

    .menu {
        gap: 15px;
    }

    .menu a {
        font-size: 14px;
    }

    .header-phone {
        display: none;
    }

    .header-right {
        margin-left: auto;
    }


    /* HERO */

    .hero .container {
        grid-template-columns: 1fr 0.85fr;
        gap: 35px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero-list {
        gap: 12px;
    }

    .hero-list li {
        padding: 14px;
        font-size: 14px;
    }

    .hero-list i {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }


    /* SERVICES */

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }


    /* ADVANTAGES */

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================================
   TABLET / MOBILE
   900px и меньше
   ========================================================= */

@media (max-width: 900px) {

    section {
        padding: 70px 0;
    }


    /* =====================================================
       HEADER
       ===================================================== */

    .header .container {
        min-height: 72px;
    }

    .menu {
        display: none;
    }

    .header-right {
        margin-left: auto;
    }

    .header-btn {
        display: none;
    }

    .burger {
        display: flex;
    }


    /* =====================================================
       HERO
       ===================================================== */

    .hero {
        padding-top: 105px;
        padding-bottom: 60px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .hero-content {
        max-width: 760px;
        margin: 0 auto;
        text-align: center;
    }

    .hero-label {
        margin-bottom: 18px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-text {
        font-size: 18px;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-list {
        text-align: left;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        max-width: 650px;
        width: 100%;
        margin: 0 auto;
    }

    .hero-card {
        left: 20px;
        bottom: 20px;
    }


    /* =====================================================
       SERVICES
       ===================================================== */

    .services,
    .services1 {
        padding: 70px 0;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

    .service-image {
        height: 220px;
    }

    .service-content {
        padding: 25px;
    }

    .service-content h3 {
        font-size: 22px;
    }


    /* =====================================================
       ADVANTAGES
       ===================================================== */

    .advantages,
    .advantages1 {
        padding: 70px 0;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .advantage-card {
        padding: 30px 25px;
    }

    .section-header {
        margin-bottom: 45px;
    }

    .section-header h2 {
        font-size: 36px;
    }


    /* =====================================================
       FORM
       ===================================================== */

    .form-section {
        padding: 70px 0;
    }

    .form-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-info {
        text-align: center;
    }

    .form-info ul {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .form-box {
        max-width: 600px;
        width: 100%;
        margin: 0 auto;
    }


    /* =====================================================
       CTA
       ===================================================== */

    .cta-section {
        padding: 70px 0;
    }

    .cta-box {
        padding: 50px 35px;
    }


    /* =====================================================
       FOOTER
       ===================================================== */

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

}


/* =========================================================
   MOBILE LARGE
   768px и меньше
   ========================================================= */

@media (max-width: 768px) {

    .container {
        padding-left: 18px;
        padding-right: 18px;
    }


    /* HEADER */

    .logo img {
        height: 40px;
    }

    .logo-title {
        font-size: 18px;
    }

    .logo-subtitle {
        font-size: 11px;
    }


    /* HERO */

    .hero {
        padding-top: 95px;
    }

    .hero h1 {
        font-size: 38px;
        line-height: 1.12;
    }

    .hero-text {
        font-size: 17px;
        line-height: 1.6;
    }

    .hero-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hero-list li {
        padding: 14px 16px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 420px;
        margin: 0 auto;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-image img {
        border-radius: 22px;
    }

    .hero-card {
        position: relative;
        left: auto;
        bottom: auto;
        margin: -30px 15px 0;
        max-width: none;
        z-index: 2;
    }


    /* SECTION HEADERS */

    .section-title {
        font-size: 34px;
    }

    .section-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .section-header p {
        font-size: 16px;
    }


    /* SERVICES */

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-image {
        height: 230px;
    }

    .service-content {
        padding: 25px 22px;
    }

    .service-content h3 {
        font-size: 23px;
    }

    .service-content p {
        font-size: 15px;
    }


    /* ADVANTAGES */

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .advantage-card {
        padding: 30px 25px;
    }

    .advantage-icon {
        width: 72px;
        height: 72px;
        margin-bottom: 20px;
    }

    .advantage-icon svg {
        width: 34px;
        height: 34px;
    }

    .advantage-card h3 {
        font-size: 22px;
    }

    .advantage-card p {
        font-size: 15px;
    }


    /* STATS */

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-item {
        padding: 25px 15px;
    }

    .stat-icon {
        width: 65px;
        height: 65px;
    }

    .stat-icon svg {
        width: 32px;
        height: 32px;
    }

    .stat-number {
        font-size: 34px;
    }

    .stat-text {
        font-size: 14px;
    }


    /* CTA */

    .cta-box {
        padding: 40px 22px;
        border-radius: 22px;
    }

    .cta-box h2 {
        font-size: 30px;
        line-height: 1.25;
    }

    .cta-box p {
        font-size: 17px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .cta-buttons a,
    .cta-buttons button {
        width: 100%;
    }


    /* FORM */

    .form-info h2 {
        font-size: 32px;
    }

    .form-info p {
        font-size: 16px;
    }

    .form-info li {
        font-size: 16px;
    }

    .form-box {
        padding: 30px 22px;
        border-radius: 20px;
    }

    .form-box h3 {
        font-size: 24px;
    }


    /* FOOTER */

    .footer {
        padding: 50px 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

}


/* =========================================================
   MOBILE
   576px и меньше
   ========================================================= */

@media (max-width: 576px) {

    section {
        padding: 60px 0;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }


    /* HEADER */

    .header .container {
        min-height: 65px;
    }

    .logo {
        gap: 9px;
    }

    .logo img {
        height: 34px;
    }

    .logo-title {
        font-size: 16px;
    }

    .logo-subtitle {
        font-size: 9px;
        margin-top: 3px;
    }

    .burger {
        width: 40px;
        height: 40px;
    }


    /* HERO */

    .hero {
        padding-top: 90px;
        padding-bottom: 50px;
    }

    .hero-label {
        font-size: 12px;
        padding: 7px 13px;
    }

    .hero h1 {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .hero-text {
        font-size: 16px;
        margin-bottom: 28px;
    }

    .hero-list li {
        font-size: 14px;
        padding: 12px;
        border-radius: 12px;
    }

    .hero-list i {
        width: 34px;
        height: 34px;
        min-width: 34px;
        font-size: 14px;
    }

    .hero-image {
        width: calc(100% + 10px);
        margin-left: -5px;
    }

    .hero-image img {
        border-radius: 18px;
    }

    .hero-card {
        padding: 18px;
        margin: -25px 10px 0;
        border-radius: 15px;
    }

    .hero-card-number {
        font-size: 28px;
    }


    /* SECTION HEADERS */

    .section-title {
        font-size: 30px;
        margin-bottom: 15px;
    }

    .section-subtitle {
        font-size: 15px;
    }

    .section-header {
        margin-bottom: 35px;
    }

    .section-header h2 {
        font-size: 29px;
        margin-bottom: 12px;
    }

    .section-header p {
        font-size: 15px;
    }


    /* SERVICES */

    .services,
    .services1 {
        padding: 60px 0;
    }

    .service-card {
        border-radius: 20px;
    }

    .service-image {
        height: 200px;
    }

    .service-card .service-badge {
        top: 5px;
        right: 5px;
        font-size: 11px;
        gap: 6px;
        padding: 7px 10px;
    }

    .service-badge::before {
        width: 16px;
        height: 16px;
        flex-basis: 16px;
        font-size: 9px;
    }

    .service-content {
        padding: 22px 18px;
    }

    .service-content h3 {
        font-size: 21px;
    }

    .service-content p {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .service-content li {
        font-size: 14px;
    }

    .service-btn {
        padding: 15px 18px;
    }


    /* ADVANTAGES */

    .advantages,
    .advantages1 {
        padding: 60px 0;
    }

    .advantage-card {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .advantage-card h3 {
        font-size: 21px;
    }


    /* STATS */

    .stats-grid {
        gap: 10px;
    }

    .stat-item {
        padding: 20px 10px;
    }

    .stat-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 14px;
    }

    .stat-icon svg {
        width: 28px;
        height: 28px;
    }

    .stat-number {
        font-size: 30px;
    }

    .stat-text {
        font-size: 13px;
    }


    /* CTA */

    .cta-section {
        padding: 60px 0;
    }

    .cta-box {
        padding: 32px 18px;
        border-radius: 20px;
    }

    .cta-box h2 {
        font-size: 26px;
    }

    .cta-box p {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .btn-primary,
    .btn-phone {
        padding: 15px 20px;
    }


    /* FORM */

    .form-section {
        padding: 60px 0;
    }

    .form-info h2 {
        font-size: 29px;
    }

    .form-box {
        padding: 25px 18px;
    }

    .form-box h3 {
        font-size: 22px;
    }

    .form-box input,
    .form-box textarea {
        padding: 14px;
    }


    /* POPUP */

    .popup-content,
    .thanks-content {
        width: calc(100% - 30px);
        max-width: 420px;
        padding: 30px 20px;
        border-radius: 20px;
    }

    .popup-content h3,
    .thanks-content h3 {
        font-size: 23px;
    }

    .popup-close {
        right: 14px;
        top: 10px;
        font-size: 28px;
    }


    /* FOOTER */

    .footer {
        padding: 45px 0 20px;
    }

    .footer h3 {
        font-size: 23px;
    }

    .footer h4 {
        font-size: 17px;
    }

    .footer-bottom {
        margin-top: 30px;
    }

}


/* =========================================================
   VERY SMALL PHONES
   400px и меньше
   ========================================================= */

@media (max-width: 400px) {

    .hero h1 {
        font-size: 29px;
    }

    .hero-label {
        font-size: 11px;
    }

    .section-title {
        font-size: 27px;
    }

    .section-header h2 {
        font-size: 27px;
    }

    .hero-buttons .btn {
        padding: 15px 18px;
        font-size: 15px;
    }

    .service-content h3 {
        font-size: 20px;
    }

    .cta-box h2 {
        font-size: 24px;
    }

    .form-info h2 {
        font-size: 27px;
    }

}


/* =========================================================
   SAFETY: предотвращаем горизонтальный скролл
   ========================================================= */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.hero,
.services,
.services1,
.advantages,
.advantages1,
.form-section,
.cta-section,
.footer {
    max-width: 100%;
    overflow: hidden;
}


/* =========================================================
   TOUCH DEVICES
   ========================================================= */

@media (hover: none) and (pointer: coarse) {

    .service-card:hover,
    .advantage-card:hover,
    .stat-item:hover {
        transform: none;
    }

    .hero-image:hover img {
        transform: none;
    }

    .service-card:hover .service-image img {
        transform: none;
    }

}
/* =========================================================
   МОБИЛЬНАЯ ШАПКА
   ========================================================= */

/* Обычный смартфон:
   логотип + номер + бургер
*/
@media (max-width: 768px) {

    .header-phone {
        display: block;
        margin-left: auto;
        margin-right: 0;
        text-align: right;
        flex-shrink: 0;
    }

    .header-phone span {
        display: none;
    }

    .header-phone a {
        display: block;
        font-size: 14px;
        font-weight: 700;
        white-space: nowrap;
        color: #222;
    }

}


/* =========================================================
   МАЛЕНЬКИЙ СМАРТФОН
   До 420px:
   логотип + иконка телефона + бургер
   ========================================================= */


@media (max-width: 390px) {

    .header-phone {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        flex-shrink: 0;
    }

    .header-phone span {
        display: none;
    }

    .header-phone a {
        position: relative;
        width: 40px;
        height: 40px;

        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 0;
        color: #ff8800;
    }

    /* Настоящая иконка телефона */
    .header-phone a::before {
        content: "";

        width: 22px;
        height: 22px;

        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ff8800' d='M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2a1.01 1.01 0 0 1 1.01-.24c1.12.37 2.33.57 3.58.57A1 1 0 0 1 21 16.51V20a1 1 0 0 1-1 1C10.61 21 3 13.39 3 4a1 1 0 0 1 1-1h3.49a1 1 0 0 1 1 1c0 1.25.2 2.46.57 3.58a1 1 0 0 1-.24 1.01l-2.2 2.2z'/%3E%3C/svg%3E");

        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }
}

/* =========================================================
   FINAL OVERRIDES
   ========================================================= */

@media (max-width: 900px) {
    .header .container {
        position: relative;
    }

    .header {
        overflow: visible;
    }

    .header .menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 10px 20px 18px;
        background: rgba(255,255,255,.98);
        border-top: 1px solid #edf0f3;
        box-shadow: 0 18px 35px rgba(0,0,0,.10);
        z-index: 1001;
    }

    .header.menu-open .menu {
        display: flex;
    }

    .header .menu a {
        position: relative;
        padding: 13px 0;
        border-bottom: 1px solid #f0f2f5;
        font-size: 16px;
    }

    .header .menu a:last-child {
        border-bottom: 0;
    }

    .header .menu a::after {
        display: none;
    }
}

@media (max-width: 900px) {
    .workflow-list {
        display: flex;
        gap: 0;
    }

    .workflow-item {
        flex: 1;
    }

    .workflow-arrow {
        width: 28px;
        min-width: 28px;
    }
}

@media (max-width: 768px) {
    .workflow-list {
        display: flex;
        flex-direction: column;
    }

    .workflow-item {
        display: grid;
        grid-template-columns: 60px minmax(0, 1fr);
        flex: none;
        width: 100%;
        padding: 0;
        text-align: left;
    }

    .workflow-number {
        grid-column: 1;
        grid-row: 1 / span 2;
        margin: 0;
    }

    .workflow-item h3,
    .workflow-item p {
        grid-column: 2;
    }

    .workflow-arrow {
        width: 60px;
        min-width: 60px;
        height: 30px;
        margin: 0;
    }
}
