/* ==========================================================
   ОСНОВНЫЕ НАСТРОЙКИ
========================================================== */

:root {
    --green: #49b653;
    --text: #333333;
    --gray: #596069;

    --pattern: url("../img/pattern.png");

    /* Высота закрепленной шапки */
    --header-height: 82px;

    /* Точное положение якоря под шапкой */
    --anchor-offset: 82px;
}


/* ==========================================================
   RESET
========================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    font-family: Arial, Helvetica, sans-serif;

    color: var(--text);

    background: #ffffff;

    overflow-x: hidden;
}


a {
    color: inherit;
    text-decoration: none;
}


img {
    display: block;
    max-width: 100%;
}


/* ==========================================================
   ЯКОРЯ МЕНЮ
========================================================== */

#service,
#price,
#contacts {
    scroll-margin-top: var(--anchor-offset);
}


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

.header {
    position: sticky;
    top: 0;

    z-index: 9999;

    width: 100%;

    background-color: #ffffff;

    background-image: var(--pattern);

    background-repeat: repeat;

    background-position: center center;

    background-size: 430px auto;

    border-bottom: 1px solid #dddddd;

    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.10);
}


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

.header-container {
    width: 100%;

    max-width: 1600px;

    height: var(--header-height);

    margin: 0 auto;

    padding: 0 28px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 28px;
}


/* ==========================================================
   LOGO
========================================================== */

.logo {
    flex: 0 0 250px;

    height: 70px;

    display: flex;

    align-items: center;

    justify-content: flex-start;
}


.logo-image {
    display: block;

    width: auto;

    height: 62px;

    max-width: 240px;

    object-fit: contain;

    object-position: left center;
}


/* ==========================================================
   MENU
========================================================== */

.menu {
    flex: 1;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;
}


.menu a {
    flex: 1;

    max-width: 340px;

    height: 45px;

    padding: 0 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid #c8c8c8;

    border-left: 3px solid var(--green);
    border-right: 3px solid var(--green);

    border-radius: 5px;

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

    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.27);

    color: var(--text);

    font-size: 14px;

    font-weight: 400;

    line-height: 1;

    text-align: center;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}


.menu a:hover {
    color: #ffffff;

    background: var(--green);

    box-shadow:
        0 3px 7px rgba(0, 0, 0, 0.25);
}


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

.header-contact {
    flex: 0 0 220px;

    display: grid;

    align-content: center;

    gap: 7px;
}


.header-contact-row {
    display: grid;

    grid-template-columns: 24px 1fr;

    align-items: center;

    column-gap: 9px;

    min-height: 24px;
}


.header-icon {
    width: 24px;
    height: 24px;

    display: flex;

    align-items: center;

    justify-content: center;
}


.header-icon svg {
    width: 20px;
    height: 20px;

    display: block;

    fill: var(--green);
}


.header-contact strong {
    color: var(--gray);

    font-size: 16px;

    font-weight: 700;

    line-height: 24px;

    white-space: nowrap;
}


.header-contact a {
    color: var(--gray);

    font-size: 18px;

    font-weight: 700;

    line-height: 24px;

    white-space: nowrap;

    transition: color 0.2s ease;
}


.header-contact a:hover {
    color: var(--green);
}


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

.hero {
    position: relative;

    width: 100%;

    height: 545px;

    background-image:
        url("../img/hero.jpg");

    background-repeat: no-repeat;

    background-position: center center;

    background-size: cover;
}


.hero-dark {
    position: absolute;

    inset: 0;

    background:
        rgba(0, 0, 0, 0.58);
}


.hero-content {
    position: relative;

    z-index: 2;

    width: 1200px;

    max-width: calc(100% - 40px);

    margin: 0 auto;

    padding-top: 50px;

    color: #ffffff;

    text-align: center;
}


.hero h1 {
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 58px;

    font-weight: 700;

    line-height: 1.2;
}


.hero h2 {
    margin-top: 68px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 50px;

    font-weight: 700;

    line-height: 1.35;
}


/* ==========================================================
   PRICE SECTION
========================================================== */

.price-section {
    width: 100%;

    padding: 52px 20px 70px;

    background: var(--green);
}


.content-container {
    width: 100%;

    max-width: 1500px;

    margin: 0 auto;
}


.price-title {
    width: 100%;

    max-width: 1380px;

    margin: 0 auto 52px;

    padding: 0 20px;

    color: #ffffff;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(30px, 2.25vw, 46px);

    font-weight: 700;

    line-height: 1.28;

    text-align: center;
}


/* ==========================================================
   PRICE BOX
========================================================== */

.price-box {
    width: 100%;

    max-width: 900px;

    margin: 0 auto;

    padding: 18px 28px;

    border-radius: 19px;

    background: #ffffff;
}


.price-row {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr) auto;

    align-items: center;

    column-gap: 45px;

    min-height: 90px;
}


.price-name {
    color: var(--text);

    font-size: 24px;

    font-weight: 700;

    line-height: 1.55;
}


.price-value {
    min-width: 150px;

    color: var(--green);

    font-size: 28px;

    font-weight: 700;

    text-align: right;

    white-space: nowrap;
}


/* ==========================================================
   PROCESS
========================================================== */

.process-section {
    width: 100%;

    min-height: 330px;

    padding: 45px 20px;

    background-color: #ffffff;

    background-image:
        var(--pattern);

    background-repeat: repeat;

    background-position: center center;

    background-size: 430px auto;
}


.process-container {
    width: 900px;

    max-width: 100%;

    margin: 0 auto;
}


.process-container h2 {
    margin-bottom: 75px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 44px;

    font-weight: 700;

    line-height: 1.2;

    text-align: center;
}


.process-container ol {
    padding-left: 28px;

    font-size: 26px;

    line-height: 1.7;
}


/* ==========================================================
   GALLERY 1
========================================================== */

.gallery-section {
    width: 100%;

    padding: 30px 20px;

    background: #f6f6f6;
}


.gallery-container {
    width: 1400px;

    max-width: 100%;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 25px;
}


.gallery-item {
    min-width: 0;

    text-align: center;
}


.gallery-item img {
    width: 100%;

    height: 590px;

    object-fit: cover;
}


.gallery-item p {
    margin: 0;

    padding:
        30px 20px;

    color: var(--text);

    font-size: 22px;

    line-height: 1.55;

    text-align: center;
}


/* ==========================================================
   GALLERY 2
========================================================== */

.gallery-second {
    width: 100%;

    padding:
        15px 20px 55px;

    background: #f6f6f6;
}


.gallery-second-container {
    width: 900px;

    max-width: 100%;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    align-items: start;

    gap: 25px;
}


.gallery-second-item {
    min-width: 0;

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;
}


.gallery-second-item img {
    width: 100%;

    height: 520px;

    object-fit: cover;

    object-position: center;
}


.gallery-second-item p {
    width: 100%;

    margin: 0;

    padding:
        26px 12px 0;

    color: var(--text);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 19px;

    font-weight: 400;

    line-height: 1.55;

    text-align: center;
}


/* ==========================================================
   RESULT
========================================================== */

.result-section {
    width: 100%;

    padding:
        60px 20px 70px;

    color: #ffffff;

    background: var(--green);
}


.result-container {
    width: 1250px;

    max-width: 100%;

    margin: 0 auto;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    text-align: center;
}


.result-container h2 {
    margin-bottom: 15px;

    font-size: 32px;

    line-height: 1.5;
}


.result-container h3 {
    font-size: 29px;

    line-height: 1.5;
}


/* ==========================================================
   CONTACTS
========================================================== */

.contacts-section {
    width: 100%;

    padding:
        34px 20px 50px;

    background-color: #ffffff;

    background-image:
        var(--pattern);

    background-repeat: repeat;

    background-position: center center;

    background-size: 430px auto;
}


.contacts-inner {
    width: 1100px;

    max-width: 100%;

    margin: 0 auto;
}


.contacts-section h2 {
    margin:
        0 0 38px;

    color: var(--text);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 42px;

    font-weight: 700;

    line-height: 1.2;

    text-align: center;
}


.contacts-container {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    align-items: start;

    gap: 80px;
}


.contact-block {
    min-width: 0;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: flex-start;

    text-align: center;
}


.contact-big-icon {
    width: 36px;
    height: 36px;

    margin:
        0 auto 14px;

    display: flex;

    align-items: center;

    justify-content: center;
}


.contact-big-icon svg {
    width: 28px;
    height: 28px;

    display: block;

    fill: var(--green);
}


.contact-block strong,
.contact-block a {
    color: var(--gray);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 25px;

    font-weight: 700;

    line-height: 1.25;

    white-space: nowrap;
}


.contact-block a {
    transition:
        color 0.2s ease;
}


.contact-block a:hover {
    color: var(--green);
}


/* ==========================================================
   GOOGLE MAP
========================================================== */

.map-section {
    width: 100%;

    height: 450px;

    overflow: hidden;

    background: #e5e9e6;
}


.map-section iframe {
    display: block;

    width: 100%;

    height: 100%;

    border: 0;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1100px) {

    :root {
        --header-height: 74px;
        --anchor-offset: 74px;
    }


    /* HEADER */

    .header-container {
        height:
            var(--header-height);

        padding:
            0 16px;

        gap: 14px;
    }


    /* LOGO */

    .logo {
        flex:
            0 0 190px;

        height: 60px;
    }


    .logo-image {
        width: auto;

        height: 51px;

        max-width: 185px;
    }


    /* MENU */

    .menu {
        gap: 7px;
    }


    .menu a {
        height: 39px;

        padding:
            0 5px;

        font-size: 10px;
    }


    /* HEADER CONTACTS */

    .header-contact {
        flex-basis: 180px;
    }


    .header-contact-row {
        grid-template-columns:
            19px 1fr;

        column-gap: 6px;
    }


    .header-icon {
        width: 19px;

        height: 19px;
    }


    .header-icon svg {
        width: 17px;

        height: 17px;
    }


    .header-contact strong {
        font-size: 12px;

        line-height: 20px;
    }


    .header-contact a {
        font-size: 15px;

        line-height: 20px;
    }


    /* HERO */

    .hero {
        height: 500px;
    }


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


    .hero h2 {
        margin-top: 60px;

        font-size: 40px;
    }


    /* PRICE */

    .price-section {
        padding:
            45px 20px 58px;
    }


    .price-title {
        max-width: 950px;

        margin-bottom: 38px;

        font-size: 32px;
    }


    .price-box {
        max-width: 760px;

        padding:
            15px 24px;
    }


    .price-row {
        min-height: 80px;

        column-gap: 30px;
    }


    .price-name {
        font-size: 20px;
    }


    .price-value {
        min-width: 125px;

        font-size: 23px;
    }


    /* PROCESS */

    .process-container h2 {
        font-size: 37px;
    }


    .process-container ol {
        font-size: 22px;
    }


    /* GALLERY 1 */

    .gallery-item img {
        height: 470px;
    }


    .gallery-item p {
        font-size: 18px;
    }


    /* GALLERY 2 */

    .gallery-second-item img {
        height: 440px;
    }


    .gallery-second-item p {
        padding-top: 22px;

        font-size: 17px;

        line-height: 1.5;
    }


    /* CONTACTS */

    .contacts-container {
        gap: 45px;
    }


    .contact-block strong,
    .contact-block a {
        font-size: 22px;
    }

}


/* ==========================================================
   MOBILE
========================================================== */

.mobile-actions {
    display: none;
}


@media (max-width: 750px) {

    :root {
        --header-height: 108px;
        --anchor-offset: 108px;
    }


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

    .header {
        position: sticky;

        top: 0;

        z-index: 9999;

        background: #ffffff;

        box-shadow:
            0 1px 5px rgba(0, 0, 0, 0.12);
    }


    .header-container {
        position: relative;

        width: 100%;

        height: 108px;

        min-height: 108px;

        padding:
            0 20px;

        display: flex;

        align-items: center;

        justify-content: space-between;

        gap: 15px;
    }


    /* ======================================================
       LOGO MOBILE
    ====================================================== */

    .logo {
        width: auto;

        height: auto;

        flex: 0 1 215px;

        display: flex;

        align-items: center;

        overflow: visible;
    }


    .logo-image {
        width: 100%;

        max-width: 215px;

        height: auto;

        max-height: 76px;

        object-fit: contain;

        object-position: left center;
    }


    /* ======================================================
       HIDE DESKTOP ELEMENTS
    ====================================================== */

    .header-contact {
        display: none;
    }


    /* Главное меню на телефоне скрыто */

    .menu {
        position: absolute;

        top: 108px;

        left: 0;

        right: 0;

        z-index: 1000;

        width: 100%;

        display: none;

        padding:
            12px 15px 16px;

        background: #ffffff;

        border-top:
            1px solid #eeeeee;

        box-shadow:
            0 8px 15px rgba(0, 0, 0, 0.15);
    }


    .menu.active {
        display: flex;

        flex-direction: column;

        gap: 8px;
    }


    .menu a {
        width: 100%;

        max-width: none;

        height: 48px;

        flex: none;

        display: flex;

        align-items: center;

        justify-content: center;

        padding:
            0 12px;

        border:
            1px solid #d0d0d0;

        border-left:
            3px solid var(--green);

        border-right:
            3px solid var(--green);

        border-radius: 5px;

        background: #ffffff;

        color: var(--text);

        font-size: 14px;

        font-weight: 500;

        white-space: nowrap;
    }


    /* ======================================================
       MOBILE BUTTONS
    ====================================================== */

    .mobile-actions {
        flex-shrink: 0;

        display: flex;

        align-items: center;

        gap: 22px;
    }


    /* PHONE */

    .mobile-phone {
        width: 48px;

        height: 48px;

        display: flex;

        align-items: center;

        justify-content: center;
    }


    .mobile-phone svg {
        width: 40px;

        height: 40px;

        fill: var(--green);
    }


    /* BURGER */

    .menu-toggle {
        width: 52px;

        height: 52px;

        padding: 9px;

        display: flex;

        flex-direction: column;

        justify-content: center;

        gap: 6px;

        border:
            3px solid var(--green);

        border-radius: 7px;

        background: transparent;

        cursor: pointer;
    }


    .menu-toggle span {
        display: block;

        width: 100%;

        height: 4px;

        border-radius: 3px;

        background: var(--green);
    }


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

    .hero {
        position: relative;

        width: 100%;

        /*
           По примеру первый экран высокий.
        */

        height:
            calc(100svh - 108px);

        min-height: 620px;

        max-height: 850px;

        background-position: center center;

        background-size: cover;
    }


    .hero-dark {
        background:
            rgba(0, 0, 0, 0.48);
    }


    .hero-content {
        width: 100%;

        max-width: 100%;

        height: 100%;

        padding:
            62px 24px 40px;

        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: flex-start;

        color: #ffffff;

        text-align: center;
    }


    .hero h1 {
        width: 100%;

        max-width: 390px;

        margin: 0 auto;

        font-family:
            Georgia,
            "Times New Roman",
            serif;

        font-size:
            clamp(42px, 12vw, 64px);

        font-weight: 700;

        line-height: 1.18;

        letter-spacing: 0;
    }


    .hero h2 {
        width: 100%;

        max-width: 430px;

        margin:
            72px auto 0;

        font-family:
            Georgia,
            "Times New Roman",
            serif;

        font-size:
            clamp(31px, 8vw, 45px);

        font-weight: 700;

        line-height: 1.25;
    }


    /*
       BR из desktop на мобильном не нужен.
       Текст сам переносится.
    */

    .hero h2 br {
        display: none;
    }


    /* ======================================================
       PRICE MOBILE
    ====================================================== */

    .price-section {
        padding:
            35px 14px 42px;
    }


    .price-title {
        margin-bottom: 30px;

        padding: 0;

        font-size: 23px;

        line-height: 1.35;
    }


    .price-box {
        padding:
            10px 15px;

        border-radius: 14px;
    }


    .price-row {
        grid-template-columns:
            minmax(0, 1fr) auto;

        gap: 10px;

        min-height: 75px;
    }


    .price-name {
        font-size: 14px;

        line-height: 1.4;
    }


    .price-value {
        min-width: auto;

        font-size: 17px;
    }


    /* ======================================================
       PROCESS MOBILE
    ====================================================== */

    .process-section {
        min-height: auto;

        padding:
            38px 18px 42px;
    }


    .process-container h2 {
        margin-bottom: 34px;

        font-size: 29px;

        line-height: 1.25;
    }


    .process-container ol {
        padding-left: 25px;

        font-size: 18px;

        line-height: 1.65;
    }


    /* ======================================================
       GALLERY 1 MOBILE
    ====================================================== */

    .gallery-section {
        padding:
            20px 12px;
    }


    .gallery-container {
        display: grid;

        grid-template-columns:
            1fr;

        gap: 25px;
    }


    .gallery-item img {
        width: 100%;

        height: auto;

        object-fit: contain;
    }


    .gallery-item p {
        padding:
            15px 8px 23px;

        font-size: 17px;

        line-height: 1.5;
    }


    /* ======================================================
       GALLERY 2 MOBILE
    ====================================================== */

    .gallery-second {
        padding:
            10px 12px 40px;
    }


    .gallery-second-container {
        display: grid;

        grid-template-columns:
            1fr;

        gap: 32px;
    }


    .gallery-second-item img {
        width: 100%;

        height: auto;

        object-fit: contain;
    }


    .gallery-second-item p {
        padding:
            14px 8px 0;

        font-size: 16px;

        line-height: 1.5;
    }


    /* ======================================================
       RESULT MOBILE
    ====================================================== */

    .result-section {
        padding:
            40px 16px 44px;
    }


    .result-container h2 {
        font-size: 23px;

        line-height: 1.4;
    }


    .result-container h3 {
        font-size: 20px;

        line-height: 1.45;
    }


    /* ======================================================
       CONTACTS MOBILE
    ====================================================== */

    .contacts-section {
        padding:
            30px 8px 40px;
    }


    .contacts-section h2 {
        margin-bottom: 30px;

        font-size: 30px;
    }


    .contacts-container {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 5px;
    }


    .contact-big-icon {
        width: 28px;

        height: 28px;

        margin-bottom: 8px;
    }


    .contact-big-icon svg {
        width: 23px;

        height: 23px;
    }


    .contact-block strong,
    .contact-block a {
        font-size: 15px;

        white-space: nowrap;
    }


    /* ======================================================
       MAP MOBILE
    ====================================================== */

    .map-section {
        height: 340px;
    }

}