:root {
  --iris: rgb(113, 197, 93);
  --ocean: rgb(69, 117, 56);
  --navy-blue: #2e2f42;
  --green: #31d0aa;
  --slate: #434455;
  --light-slate: #8e8f99;
  --cornflower: #e7e9fc;
  --cloud: #f4f4fd;
  --navy-blue-modal: rgba(46, 47, 66, 0.4);
  --grey: rgba(46, 47, 66, 0.7);
  --white: #fff;
  --dairy: #fcfcfc;
  --font-family: 'Roboto', sans-serif;
  --second-family: 'Raleway', sans-serif;
  --transition-function-main: cubic-bezier(0.4, 0, 0.2, 1);
  scroll-behavior: smooth;
}

/* Глобальне скидання стилів */

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
  margin-bottom: 0;
}

ul,
ol {
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
}

/* Загальні стилі */

body {
  padding-top: 56px;
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--slate);
  background-color: var(--white);
}

@media (min-width: 768px) {
  body {
    padding-top: 72px;
  }
}

a {
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--navy-blue);
}

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

.section {
  padding-top: 96px;
  padding-bottom: 96px;
}
@media (min-width: 1158px) {
  .section {
    padding-top: 120px;
    padding-bottom: 120px;
  }
}

.section-title {
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: capitalize;
  margin-bottom: 72px;
}

.logo {
  font-family: var(--second-family);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.17;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgb(113, 197, 93);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;

  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.button-main {
  margin-left: 40px;
  margin-top: 25px;
  padding: 16px 32px;
  background-color: rgb(113, 197, 93);
  color: white;
  font-size: 30px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 700;
  
}


.button-main:hover,
.button-main:focus {
  background-color: rgb(69, 117, 56);
}

.social-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.social-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgb(113, 197, 93);
  transition: background-color 250ms var(--transition-function-main);
}

.social-link:hover,
.social-link:focus {
  background-color: rgb(69, 117, 56);
}

.social-icon {
  fill: var(--cloud);
}




.close-icon {
  fill: var(--white);
  transition: fill 250ms var(--transition-function-main);
}
.close-button {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background-color: rgb(113, 197, 93);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 250ms ease;
  border: none;
  cursor: pointer;
}
.close-button:hover,
.close-button:focus {
  background-color: rgb(69, 117, 56);
  border: none;
}

.close-button:hover svg,
.close-button:focus svg {
  fill: var(--white);
}

/* Контейнер */

.container {
  max-width: 320px;
  padding-left: 16px;
  padding-right: 16px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1158px) {
  .container {
    max-width: 1158px;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* === Хедер декстоп === */
.header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e3e7f2;
  min-height: 70px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}

.header-flex-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1450px;
  margin: 0 auto;
  padding: 0 36px;
  height: 70px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 44px;
}

.header-logo {
  font-size: 30px;
  font-weight: 700;
  color: rgb(113, 197, 93);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  margin-right: 40px;
  transition: opacity 0.2s;
}

.header-logo span,
.header-nav-logo-dark {
  color: #2e2f42;
  font-weight: 700;
}

.header-nav-list {
    margin-left: 100px;
  display: flex;
  gap: 50px;
  align-items: center;
}

.header-nav-link {
  font-size: 20px;
  font-weight: 500;
  color: #242738;
  text-decoration: none;
  padding: 7px 0 4px 0;
  position: relative;
  transition: color 0.2s;
}
.header-nav-link.active,
.header-nav-link:hover {
  color: #71c55d;
}
.header-nav-link.active::after {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #71c55d;
  margin-top: 5px;
  position: absolute;
  left: 0;
  bottom: -8px;
}

.header-address {
  display: flex;
  align-items: center;
  font-style: normal;
  font-weight: 700;
  font-size: 20px;
}

.header-address-list {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
}

.header-address-link {
  display: flex;
  align-items: center;
  color: #242738;
  font-size: 20px;
  font-weight: 500;
  text-decoration: none;
  gap: 6px;
  transition: color 0.2s;
}
.header-address-link img {
  width: 20px;
  height: 20px;
  margin-right: 6px;
}

.header-address-link:hover {
  color: #71c55d;
}

/* ========== Хедер мобільний та планшетний ========== */


@media (max-width: 1279px) {
  .header {
    display: none !important;
  }
  .mobile-header {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    min-height: 56px;
    background: #fff;
    border-bottom: 1px solid #e3e7f2;
    z-index: 200;
    box-shadow: 0 2px 8px rgba(46, 47, 66, 0.09);
  }
  .header-flex-container {
    flex-wrap: nowrap;
    padding: 0 12px;
    height: 56px;
    align-items: center;
    justify-content: space-between;
  }
  .mobile-header-logo {
    font-size: 22px;
    font-family: var(--second-family);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--iris);
    letter-spacing: 0.03em;
    text-decoration: none;
    display: block;
    padding: 0;
    margin: 0;
    white-space: nowrap;
  }
  .mobile-header-hamburger-button {
    background: none;
    border: none;
    outline: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    z-index: 210;
  }
  .mobile-header-hamburger-icon {
    width: 32px;
    height: 32px;
    fill: var(--iris);
  }

  /* Мобільний хедер */
  .mobile-header-menu {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background: #fff;
    z-index: 220;
    padding: 70px 20px 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    transform: translateY(-120%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 8px 20px rgba(46,47,66,0.10);
    opacity: 0;
    pointer-events: none;
  }
  .mobile-header-menu.open,
  .mobile-header-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-menu-close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--iris);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 221;
  }
  .mobile-menu-close-button .close-icon {
    fill: #fff;
    width: 18px;
    height: 18px;
  }
  .mobile-header-nav-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 10px;
    padding-left: 0;
  }
  .mobile-header-nav-link {
    font-size: 30px;
    font-weight: 600;
    color: var(--navy-blue);
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.2s;
  }
  .mobile-header-nav-link.active,
  .mobile-header-nav-link:hover,
  .mobile-header-nav-link:focus {
    color: var(--iris);
  }
  .mobile-header-address-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .mobile-header-address-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--navy-blue);
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
    font-style: normal;
  }
  .mobile-header-address-link img {
    width: 22px;
    height: 22px;
    margin-right: 2px;
  }
  .mobile-header-address-link:hover {
    color: var(--iris);
  }
}
@media (min-width: 1280px) {
  .header {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 100;
  }
  .mobile-header {
    display: none !important;
  }
}
/* Хіро */

.hero {
  background-color: #fff;
  padding: 150px 20px;
  display: flex;
  justify-content: center;
}

.hero-content {
    max-width: 1400px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-text {
 max-width: 600px;
}

.hero-text h1 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-text h2 {
  font-size: 40px;
  margin-bottom: 10px;
}


.hero-image img {
  max-width: 920px;
  height: auto;
}
@media (min-width: 1025px) {
  .hero {
    min-height: 920px;
    display: flex;
    align-items: center;
  }
}
  
/* Мобільна версія */
@media (min-width: 1025px) {
  .hero-image img {
    width: 920px;
    height: auto;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .hero-image img {
    width: 500px;
  }
}

@media (max-width: 767px) {
  .hero-image img {
    width: 390px;
  }
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-image {
    order: 1;
  }

  .hero-text {
    order: 2;
  }

  .button-main {
    margin: 20px auto 0;
  }
}

/* Наші послуги */

.our-services-section {
  background-color: var(--cloud);
}

.our-services-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 72px;
}

.our-services-item {
   background-color: white;
  width: 264px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15),
              0 8px 15px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.our-services-item-description-wrapper {
  padding: 32px 0;
}

.our-services-item-title {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  margin-bottom: 8px;
}

.our-services-item-text {
  text-align: center;
  margin-bottom: 8px;
}

.our-services-social-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

@media (min-width: 768px) {
  .our-services-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 64px 24px;
  }
}

/* Ціни */

.price-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  column-gap: 24px;
  row-gap: 48px;
  flex-wrap: wrap;
}

.price-item {
 border-radius: 30px;
  background-color: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.price-item:hover,
.price-item:focus {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border-bottom: 6px solid rgb(113, 197, 93);
}

.price-item:hover .price-image-overlay,
.price-item:focus .price-image-overlay {
  transform: translateY(0);
}
.price-text{
 color: #8e8f99;
 text-align: center;
 font-size: 20px;
 padding: 40px;
}

.price-image-thumb {
  position: relative;
  overflow: hidden;
  background-color: white;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: box-shadow 0.3s ease;
}


.price-image-overlay {
  list-style-type: disc;
  position: absolute;
  top: 0;
  width: 100%;
  min-height: 100%; 
  color: #2e2f42;
  background-color: #e7e9fc;
  transform: translateY(100%);
  transition: transform 250ms var(--transition-function-main);
  padding: 16px 14px 12px 25px;
  font-size: 17px; 
  line-height: 1.4; 
}

.price-item-description-wrapper {
  border-radius: 0 0  30px 30px;
  padding: 22px 16px;
  border-bottom: 1px solid #e7e9fc;
  border-left: 1px solid #e7e9fc;
  border-right: 1px solid #e7e9fc;
}

.price-item-title {
  text-align: center;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .price-list {
    flex-direction: row;
    flex-wrap: wrap;
    row-gap: 72px;
  }

  .price-item {
    width: calc((100% - 1 * 24px) / 2);
  }
}

@media (min-width: 1158px) {
  .price-list {
    row-gap: 48px;
  }

  .price-item {
    width: calc((100% - 2 * 24px) / 3);
  }
 

  .price-item {
    overflow: visible;
    position: relative;
    isolation: isolate;
  }
}

 
/* Поширенні запитання*/
.faq-section.container{
  padding-bottom: 100px;
}

.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq-item { 
  margin-bottom: 16px;
}

.faq-item details  {
  color: #71c55d;
  padding: 16px 20px;
  border-radius: 8px;
  color: rgb(129, 86, 165);
  border: 1px solid ;
}

.faq-item summary  {
  font-size: 18px;
  cursor: pointer;
  font-weight: 500;
}

.faq-item summary::marker  {
  color:#8156a5;
}

.faq-item details[open] summary {
  color: rgb(113, 197, 93) ;
}

.faq-item p { 
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.5;
} 
.faq-section {
   background-color: #e7e9fc;
margin-bottom: 0;
padding-bottom: 0;
}

.faq-container {
  padding-bottom: 50px; 
}

/* Контакти*/

.contact-section {
  background-color: white;
  margin-bottom: 0;
  padding-top: 80px;    
  padding-bottom: 80px;
}
.contact-wrapper {
  max-width: 1400px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
}

.contact-info {
  flex: 1 1 40%;
  min-width: 280px;
  text-align: center;
}

.contact-title {
  font-size: 47px;
  margin-bottom: 32px;
  color: var(--navy-blue);
  font-weight: 800;
  text-align: left;

}

.contact-title span {
  color: rgb(113, 197, 93);
  font-size: 47px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  
}

.contact-list img {
  width: 24px;
  height: 24px;
}

.contact-list a {
  color: var(--navy-blue);
  font-size: 23px;
  font-weight: 600;
  text-decoration: none;
  transition: color 250ms;
}

.contact-list a:hover {
  color: rgb(113, 197, 93);
}

.contact-form {
  flex: 1 1 50%;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form label {
  font-size: 16px;
  color: var(--navy-blue);
  font-weight: 500;
  display: block;
}

.input-icon-wrapper {
  position: relative;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  font-family: var(--font-family);
  outline: none;
  transition: border-color 250ms;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgb(113, 197, 93);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  fill: var(--navy-blue);
  pointer-events: none;
}

.contact-form button {
  padding: 14px;
  font-size: 18px;
  background-color: rgb(113, 197, 93);
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 250ms;
}

.contact-form button:hover {
  background-color: rgb(69, 117, 56);
}

/* Футер */

.footer {
  background: #2f3041;
  padding: 48px 0 32px 0;
  color: #fff;
  margin-top: 0px;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.footer-title {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-align: center;
}

.footer-title-green {
  color: #69b93d;
  font-weight: 700;
}
.footer-title-white{
  color: white;
  font-weight: 700;
}
.footer-copy {
  color: #e3e3e3;
  font-size: 13px;
  margin: 0 auto;
  text-align: center;
}


@media (min-width: 768px) {
  .footer-flex-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 72px 24px;
    align-items: baseline;
    justify-content: flex-start;
    max-width: 584px;
  }
  .footer-copyright {
    max-width: 264px;
    align-items: flex-start;
  }
  .footer-text {
    font-weight: 500;
  } 
}

@media (min-width: 1158px) {
  .footer-flex-wrapper {
    flex-wrap: nowrap;
    padding-left: 15px;
    padding-right: 15px;
    gap: 0;
    max-width: 1158px;
  }

  .footer-copyright {
    margin-right: 120px;
  }

  .footer-text {
    font-weight: 400;
  }
}

/* Модальне вікно */

@media (min-width: 768px) {
  .overlay-modal {
    width: 408px;
    min-height: 584px;
  }
}
.overlay {
  top: 0;
  left: 0;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 250ms;
}


.overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.overlay-modal {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 32px;
  background: var(--dairy);
  border-radius: 12px;
  max-width: 600px;
  width: 95%;
  min-height: 640px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow-y: auto;
}

.order-form {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.order-form-input-text:focus,
textarea.order-form-input-text:focus {
  border-color: #71c55d !important;    
  box-shadow: none !important;         
  outline: none !important;            
}

textarea.order-form-input-text {
  min-height: 120px;
  resize: vertical;
}

.order-form-header {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 24px;
  text-align: center;
}

.order-form-input-label-wrapper {
  margin-bottom: 20px;
}

.order-form-input-wrapper {
  position: relative;
}

.order-form-input-text,
.textarea {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 20px;
  resize: none;
  
}

.order-form-input-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  fill: #999;
}

.order-submit-button {
  display: block;
  width: 100%;
  
  margin: 30px auto 0 auto;
  background-color: rgb(113, 197, 93);
  color: #fff;
  font-size: 25px;
  font-weight: 700;
  padding: 16px 0;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: none; 
}

.order-submit-button:hover {
  background: rgb(69, 117, 56);
  box-shadow: 0 3px 0 #52ac38;
}


@media (max-width: 1279px) {
   .mobile-header-menu {
    display: flex;
    flex-direction: column;
    height: 100vh; 
    justify-content: flex-start;
    padding-bottom: 28px;
     overflow-y: auto;
  }
  .mobile-header-nav {
    flex-shrink: 0;
  }
  .mobile-header-address {
    margin-top: 120px; 
    flex-shrink: 0;
  }
}
@media (max-width: 767px) {
  .price-image-overlay {
    font-size: 14px;      
    line-height: 1.3;
    padding: 10px 8px 8px 18px;
  }
}

@media (min-width: 1280px) and (max-width: 1350px) {
  .header-flex-container {
    padding: 0 16px;
    max-width: 1200px;
  }
  .header-nav-list {
    margin-left: 40px;
    gap: 20px;
  }
  .header-address-list {
    gap: 14px;
  }
}
@media (max-width: 1024px){
.scroll-to-top {
  display: none;
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 55px;
  height: 55px;
  background: none;
  border: none;
  border-radius: 50%;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.scroll-to-top svg {
  display: block;
}
}
/* Видно тільки до 1024px */
@media (max-width: 1024px) {
  .scroll-to-top {
    display: flex;
  }
}

@media (max-width: 600px) {
  .scroll-to-top {
    width: 45px;
    height: 45px;
    right: 10px;
    bottom: 10px;
  }
}

