* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    outline: none !important;
}

:root {
    --color-primary: #d0572e;
    --color-secondary: #222222;
    --color-tertiary: #ece6df;
    --color-alternative: #d8cdc0;
    --color-shadow: rgba(0,0,0,0.24);
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

h1, h2, h3 {
    line-height: 1.2;
    font-weight: 600;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: clamp(1.6rem, calc(1.6rem + ((1vw - 0.48rem) * 0.25)), 1.8rem);
    line-height: 1.4;
    color: var(--color-secondary);
}

button {
    all: unset;
}

.button {
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-transform: uppercase;
    font-weight: 600;
    text-shadow: 0 1px 0 var(--color-shadow);
    background-color: var(--color-primary);
    transition: all 0.2s ease-in-out;
}

.button--form {
    cursor: pointer;
}

.button--secondary {
    background-color: transparent;
    border: 2px dashed var(--color-alternative);
    color: var(--color-primary);
    text-shadow: none;
}

.button--small {
    padding: 32px 24px;
    font-size: 1.6rem;
}


.button:hover {
    background-color:  #a74525;
    transform: scale(0.96);
}

.button--secondary:hover {
    background-color: white;
}

.button--small:hover {
    transform: none;
}

.hamburger {
    display: none;
}

.header {
    padding: 0px 24px;
    background-color: var(--color-secondary);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header__container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__phone {
    display: none;
}

.header__link {
    display: flex;
}

.header__logo {
    width: clamp(16rem, calc(16rem + ((1vw - 0.48rem) * 5)), 20rem);
}

.nav__list {
    display: flex;
}

.nav__item {
    display: flex;
}

.nav__link {
    font-size: 1.6rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 32px 24px;
    color: white;
    transition: all 0.2s ease-in-out;
}

.nav__link:hover {
    background-color: #444444;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 513px), 1fr));
}

.hero__content {
    padding: clamp(4.8rem, calc(4.8rem + ((1vw - 0.48rem) * 6)), 9.6rem) clamp(2.4rem, calc(2.4rem + ((1vw - 0.48rem) * 9)), 9.6rem);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(2.4rem, calc(2.4rem + ((1vw - 0.32rem) * 1)), 3.2rem);
    position: relative;
    overflow: hidden;
}

.hero__decoration {
    position: absolute;
    height: clamp(24rem, calc(24rem + ((1vw - 0.32rem) * 10)), 32rem);
    width: clamp(24rem, calc(24rem + ((1vw - 0.32rem) * 10)), 32rem);
    right: -96px;
    bottom: -96px;
    z-index: -1;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__keyword {
    font-size: 0.1rem;
    color: white;
    margin-bottom: clamp(-3.2rem, calc(-2.4rem + ((1vw - 0.48rem) * -1)), -2.4rem);
}

.hero__heading {
    font-size: clamp(4.8rem, calc(4.8rem + ((1vw - 0.32rem) * 1)), 5.6rem);
    line-height: 1;
}

.hero__subheading {
    font-size: clamp(2rem, calc(2rem + ((1vw - 0.32rem) * 0.5)), 2.4rem);
}

.services {
    padding: 96px 24px;
    background-color: var(--color-tertiary);
}

.services__container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.services__keyword {
    font-size: 0.1rem;
    color: var(--color-tertiary);
}

.services__heading {
    font-size: clamp(3.2rem, calc(3.2rem + ((1vw - 0.48rem) * 2)), 4.8rem);
}

.services__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 48px;
}

.services__card {
    display: flex;
    flex-direction: column;
    gap: clamp(2.4rem, calc(2.4rem + ((1vw - 0.32rem) * 1)), 3.2rem);
}

.services__card-heading {
    font-size: clamp(2.4rem, calc(2.4rem + ((1vw - 0.48rem) * 1)), 3.2rem);
}

.services__card-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.services__card-item {
    display: flex;
    padding-left: clamp(1.6rem, calc(1.6rem + ((1vw - 0.48rem) * 0.5)), 2rem);
    position: relative;
}

.services__card-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
}

.services__card-image {
    width: 100%;
    height: auto;
    border: 8px solid var(--color-alternative);
    order: -1;
}

.reviews {
    padding: 96px 24px;
}

.reviews__container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

.reviews__heading {
    font-size: clamp(3.2rem, calc(3.2rem + ((1vw - 0.48rem) * 2)), 4.8rem);
}

.reviews__keyword {
    font-size: 0.1rem;
    color: white;
}

.reviews__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: clamp(1.2rem, calc(1.2rem + ((1vw - 0.48rem) * 4.5)), 4.8rem);
}

.reviews__card {
    display: flex;
    flex-direction: column;
    padding: 32px;
    gap: 32px;
    background-color: var(--color-tertiary);
    border-bottom: 8px solid var(--color-alternative);
}

.reviws__card-heading {
    font-size: 2rem;
}

.reviews__card-caption {
    font-size: 1.4rem;
}

.reviews__card-user {
    display: flex;
    align-items: center;
    gap: 16px;
    order: -1;
    padding-bottom: 32px;
    border-bottom: 2px dashed var(--color-alternative);
}

.reviews__card-image {
    max-width: 64px;
    max-height: 64px;
    border: 4px solid white;
    border-radius: 999px;
    order: -1;
}

.gmb {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-secondary);
}

.gmb__heading {
    font-size: 1.6rem;
}

.gmb__caption {
    font-size: 1.4rem;
    margin-right: 4px;
}

.gmb__stars {
    display: flex;
    align-items: center;
}

.credits {
    padding: 24px;
    background-color: white;
}

.credits__author {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    color: #222222;
    gap: 8px;
}

.credits__author:hover {
    text-decoration: underline;
}

.credits__container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.benefits {
    padding: 96px 24px;
    background-color: var(--color-alternative);
}

.benefits__container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.benefits__keyword {
    font-size: 0.1rem;
    color: var(--color-alternative);
}

.benefits__heading {
    font-size: clamp(3.2rem, calc(3.2rem + ((1vw - 0.32rem) * 2)), 4.8rem);
}

.benefits__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 48px;
    padding-top: 48px;
    border-top: 2px dashed #c5b4a0;
}

.benefits__card {
    display: flex;
    gap: 24px;
}

.benefits__card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.benefits__card-icon {
    display: flex;
    width: clamp(4.8rem, calc(4.8rem + ((1vw - 0.48rem) * 2)), 6.4rem);
    height: clamp(4.8rem, calc(4.8rem + ((1vw - 0.48rem) * 2)), 6.4rem);
    min-width: clamp(4.8rem, calc(4.8rem + ((1vw - 0.48rem) * 2)), 6.4rem);
    min-height: clamp(4.8rem, calc(4.8rem + ((1vw - 0.48rem) * 2)), 6.4rem);
    order: -1;
}

.gallery {
    padding: 96px 24px;
    background-color: var(--color-secondary);
}

.gallery__container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
  }
  
  .gallery__heading {
    font-size: clamp(3.2rem, calc(3.2rem + ((1vw - 0.32rem) * 2)), 4.8rem);
    color: white;
  }
  
  .gallery__grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 2px;
  }
  
  .gallery__item {
    width: 100%;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
  }

  .gallery__item:nth-child(3n+1) {
    grid-column: span 2;
    grid-row: span 2;
  }
  
  .gallery__item:hover {
    opacity: 0.8;
  }
  
  .lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  
  .lightbox--hidden {
    display: none;
  }
  
  .lightbox__image {
    max-width: 90%;
    max-height: 90%;
  }
  
  .lightbox__nav {
    position: absolute;
    top: 50%;
    font-size: clamp(2.4rem, calc(2.4rem + ((1vw - 0.48rem) * 1)), 3.2rem);
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    user-select: none;
    transform: translateY(-50%);
  }
  
  .lightbox__nav--prev {
    width: clamp(3.2rem, calc(3.2rem + ((1vw - 0.48rem) * 2)), 4.8rem);
    height: clamp(3.2rem, calc(3.2rem + ((1vw - 0.48rem) * 2)), 4.8rem);
    background-color: var(--color-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    left: clamp(1.6rem, calc(1.6rem + ((1vw - 0.48rem) * 2)), 3.2rem);
  }
  
  .lightbox__nav--next {
    width: clamp(3.2rem, calc(3.2rem + ((1vw - 0.48rem) * 2)), 4.8rem);
    height: clamp(3.2rem, calc(3.2rem + ((1vw - 0.48rem) * 2)), 4.8rem);
    background-color: var(--color-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    right: clamp(1.6rem, calc(1.6rem + ((1vw - 0.48rem) * 2)), 3.2rem);
  }

.contacts {
    padding: 96px 24px;
    background-color: var(--color-tertiary);
    position: relative;
    overflow: hidden;
}

.contacts__decoration {
    position: absolute;
    height: clamp(24rem, calc(24rem + ((1vw - 0.32rem) * 10)), 32rem);
    width: clamp(24rem, calc(24rem + ((1vw - 0.32rem) * 10)), 32rem);
    bottom: -48px;
    left: -24px;
}

.contacts__container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr));
    gap: clamp(4.8rem, calc(4.8rem + ((1vw - 0.48rem) * 6)), 9.6rem);
}

.contacts__content {
    display: flex;
    flex-direction: column;
    gap: clamp(4.8rem, calc(4.8rem + ((1vw - 0.48rem) * 6)), 9.6rem);
}

.contacts__heading {
    font-size: clamp(3.2rem, calc(3.2rem + ((1vw - 0.48rem) * 2)), 4.8rem);
}

.contacts__links {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contacts__link {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--color-secondary);
}

.contact__link-heading {
    font-size: clamp(1.6rem, calc(1.6rem + ((1vw - 0.48rem) * 0.25)), 1.8rem);
}

.contacts__link-text {
    font-size: clamp(2rem, calc(2rem + ((1vw - 0.48rem) * 0.5)), 2.4rem);
    font-weight: 600;
    color: var(--color-primary);
}

.contacts__link-wrapper {
    display: flex;
    flex-direction: column;
}

.contacts__link-icon {
    width: clamp(4.8rem, calc(4.8rem + ((1vw - 0.48rem) * 2)), 6.4rem);
    height: clamp(4.8rem, calc(4.8rem + ((1vw - 0.48rem) * 2)), 6.4rem);
    order: -1;
}

.contacts__billing {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contacts__billing-caption {
    font-size: 1.4rem;
}

.contacts__form {
    background-color: white;
    border: 2px solid var(--color-alternative);
    border-bottom: 8px solid var(--color-alternative);
    display: flex;
    flex-direction: column;
    padding: clamp(3.2rem, calc(3.2rem + ((1vw - 0.48rem) * 2)), 4.8rem);
    gap: clamp(3.2rem, calc(3.2rem + ((1vw - 0.48rem) * 2)), 4.8rem);
    z-index: 10;
}

.contacts__form-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contacts__form-heading {
    font-size: clamp(2.4rem, calc(2.4rem + ((1vw - 0.48rem) * 1)), 3.2rem);
}

.contacts__form-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.6rem, calc(1.6rem + ((1vw - 0.48rem) * 1)), 2.4rem);
}
  
.contacts__form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
  
.contacts__form-group--full {
    grid-column: 1 / -1;
}
  
.contacts__form-label {
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
}

.contacts__form-radio {
    display: flex;
    align-items: center;
    gap: 8px;
}

input[type="radio"] {
    appearance: none;
    -webkit-appearance: radio;
    width: 16px;
    height: 16px;
  }

.success {
	display: block;
    padding: 24px;
    text-align: center;
    background-color:#d9f2e6;
    color: #26734d;
    font-weight: 600;
}

.hidden {
    display: none;
}
  
input, textarea {
	appearance: none;
  	-webkit-appearance: none;
    width: 100%;
    font-size: clamp(1.6rem, calc(1.6rem + ((1vw - 0.48rem) * 0.25)), 1.8rem);
    padding: 16px;
    border: 2px solid var(--color-alternative);
	border-radius: 0;
    background-color: white;
    transition: all 0.2s ease-in-out;
}

input:focus, textarea:focus {
    border-color: transparent;
    outline-color: var(--color-secondary);
    box-shadow: 0 0 0 2px var(--color-secondary);
}

textarea {
    resize: none;
}
  

@media (max-width: 1024px) {

    .button {
        width: 100%;
    }
    
    .button--form {
        width: auto;
    }

    .button--small {
        padding: 12px 24px;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: space-between;
        width: 32px;
        height: 16px;
        cursor: pointer;
    }
    
    .hamburger__bar {
        height: 2px;
        background-color: white;
        transition: all 0.2s ease-in-out;
    }
    
    .hamburger--active .hamburger__bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    
    .hamburger--active .hamburger__bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger--active .hamburger__bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .header {
        padding: 24px;
    }
    
    .header__phone {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--color-primary);
        color: white;
        width: 32px;
        height: 32px;
        margin: 0px 24px 0px auto;
    }
    
    .nav__link {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 12px 24px;
        color: var(--color-secondary);
        background-color: var(--color-tertiary);
        border: none;
    }

    .nav__link:hover {
        background-color: var(--color-tertiary);
    }
    
    .nav__list {
        display: none;
    }
    
    .nav__list--active {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: stretch;
        gap: 12px;
        padding: 24px;
        background-color: var(--color-alternative);
        position: absolute;
        top: 89px;
        left: 0;
        right: 0;
        z-index: 9999;
    }

    .overlay {
        display: none;
        position: fixed;
        top: 415px;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.48);
        z-index: 998;
    }
    
    .overlay.active {
        display: block;
    }

    .contacts__form-body {
        grid-template-columns: 1fr;
    }

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

    .gallery__item:nth-child(3n+1) {
        grid-column: unset;
        grid-row: unset;
    }

.credits__container {
	flex-direction: column;
	text-align: center;
	gap: 8px;
}
}