 @import url('https://fonts.googleapis.com/css2?family=Mona+Sans:wght@400;500;600;700&display=swap');

 body {
     margin: 0;
     font-family: 'Mona Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI';

 }

 header {
     text-align: -webkit-center;
     background-color: #FFD4AD;
     padding: 20px;
 }

 select {
     -webkit-appearance: none;
     -moz-appearance: none;
     appearance: none;
     font-size: 16px;
     color: #000;
     padding: 10px;
     border: 1px solid #ccc;
     border-radius: 6px;
     background-color: #fff;
     background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6"><path fill="%23000" d="M0 0l5 6 5-6z"/></svg>');
     background-repeat: no-repeat;
     background-position: right 10px center;
     background-size: 10px;
 }

 .floating-input input {
     border: 1px solid #beb8b8;
     border-radius: 5px;
     padding: 24px 10px 6px;
     font-size: 1.2rem;
     width: 12rem;
     background-color: white;
     font-family: sans-serif;
 }

 .floating-input {
     position: relative;
 }

 .floating-input label {
     position: absolute;
     left: 10px;
     top: 0.9rem;
     color: #999;
     font-size: 1rem;
     pointer-events: none;
     transition: 0.2s ease all;
 }

 .floating-input input:focus+label,
 .floating-input input:not(:placeholder-shown)+label {
     top: 5px;
     font-size: 12px;
     color: #555;
 }

 .floating-input input:focus {
     outline: none;
     border-color: #ff6b00;
 }





 .floating-input-select input {
     border: 1px solid #beb8b8;
     border-radius: 5px;
     padding: 24px 10px 6px;
     font-size: 1.2rem;
     width: 12rem;
     background-color: white;
     font-family: sans-serif;
 }

 .floating-input-select {
     position: relative;
 }

 .floating-input-select label {
     position: absolute;
     left: 10px;
     top: 5px;
     color: #555;
     font-size: 12px;
     pointer-events: none;
     transition: 0.2s ease all;
 }

 .floating-input-select input:focus+label,
 .floating-input-select input:not(:placeholder-shown)+label {
     top: 5px;
     font-size: 12px;
     color: #555;
 }

 .floating-input-select select:focus {
     outline: none;
     border-color: #ff6b00;
 }



 header .logo {
     font-weight: bold;
     font-size: 20px;
     color: #1d1d1f;
     display: flex;
     align-items: center;
 }

 .arrow {
     width: 16px;
     padding-left: 5px;
 }

 .banner-bg {
     display: flex;
     align-items: center;
     flex-direction: row;
     max-width: 70rem;
 }

 header .logo img {
     height: 34px;
     margin-right: 8px;
 }

 header .link a {
     font-size: 14px;
     display: flex;
     color: #1d1d1f;
     flex-direction: row;
     align-items: center;
     text-decoration: none;
 }

 .banner {
     background-color: #FFD4AD;
     padding: 0px 20px;
     display: flex;
     flex-direction: row;
     justify-content: center;
     align-items: center;

 }

 .header-top {
     max-width: 70rem;
     display: flex;
     justify-content: space-between;
 }

 .banner-content {
     max-width: 40rem;
 }

 .banner h1 {
     font-size: 2.5rem;
     color: #1d1d1f;
     line-height: 3rem;
     margin: 0px;
 }

 .banner p {
     color: #555;
     padding-bottom: 20px;
 }

 .banner form {
     display: flex;
     background: white;
     flex-direction: row;
     padding: 7px;
     width: 38rem;
     border-radius: 15px;
     margin-top: 20px;
     gap: 10px;
 }

 .banner input,
 .banner select {
     border: 1px solid #beb8b8;
     border-radius: 5px;
     padding: 24px 10px 6px;
     font-size: 16px;
     width: 11rem;
     appearance: none;
     -moz-appearance: none;
     background-color: white;
 }

 .banner button {
     background-color: #ff6b00;
     color: #fff;
     border-radius: 5px;
     border: none;
     padding: 0rem 1.7rem;
     font-size: 16px;
     cursor: pointer;
 }

 .experts-content {
     max-width: 70rem;
 }



 .experts {
     text-align: -webkit-center;
     padding-bottom: 50px;
     padding-top: 50px;
 }

 .banner-image img {
     max-height: 30rem;
 }

 .experts-header {
     max-width: 40rem;
     text-align: center;
     margin-top: 20px;
 }




 /* Start tabs */
 .tabs {
     display: flex;
     margin-bottom: 20px;
     justify-content: center;
 }

 .fade-out {
     opacity: 0;
     transition: opacity 500ms ease-in;
 }

 .fade-in {
     opacity: 1;
     transition: opacity 500ms ease-out;
 }

 .tab {
     position: relative;
     padding: 1rem 5rem;
     cursor: pointer;
     border: #bcbcbc solid 1px;
     background: none;
     transition: all 0.3s ease;
     /* Плавність кольору, фону, інше */
     color: #555;
 }

 .tab.active {
     font-weight: bold;
     border: #bcbcbc solid 1px;
 }

 .tab::after {
     content: "";
     position: absolute;
     bottom: 0;
     left: 50%;
     width: 0%;
     height: 2px;
     background-color: orange;
     transition: all 0.5s ease;
     transform: translateX(-50%);
 }

 .tab.active::after {
     width: 50%;
     /* або 100% якщо хочеш всю ширину */
 }


 .grid {
     display: grid;
     grid-template-columns: repeat(4, 1fr);
     gap: 20px;
     justify-content: center;
 }

 .grid.center-last-two {
     display: flex;
     flex-wrap: wrap;
     gap: 20px;
     justify-content: center;
 }

 .card {
     border: 1px solid #ddd;
     border-radius: 8px;
     text-align: center;
     padding: 20px;
     color: #333;
     width: 100%;
     max-width: 16rem;
     box-sizing: border-box;
     text-decoration: auto;
 }

 .card.inactive {
     color: #aaa;
     border-color: #eee;
 }

 .card.inactive .icon {
     opacity: 0.5;
 }

 .card.inactive .rating {
     opacity: 1;
     color: #aaa;
 }

 .icon {
     height: 40px;
     margin-bottom: 10px;
 }

 .icon img {
     width: 40px;
     height: 40px;
     object-fit: contain;
 }

 .rating {
     color: orange;
     margin-top: 10px;
 }

 /* end tabs */


 @media screen and (min-width: 1600px) {
     .header-top {
         max-width: 100rem;
     }

     header .logo img {
         height: 3rem;
     }

     .banner-bg {
         max-width: 100rem;
     }

     .banner-image img {
         max-height: 45rem;
     }

     .banner h1 {
         font-size: 3.5rem;
     }

     .banner form {
         width: 46rem;
     }

     .banner input,
     .banner select {
         width: 15rem;
         font-size: 1.2rem;
     }

     .banner p {
         font-size: 1.2rem;
     }

     header .link {
         font-size: 1rem;
     }

     .arrow {
         width: 22px;
     }

     .banner-content {
         max-width: 50rem;
     }

     .experts-content {
         max-width: 100rem;
     }

     h2 {
         font-size: 2.3rem;
     }

     .experts-header {
         max-width: 60rem;
     }

     .experts-header p {
         font-size: 1.2rem;
     }

     .tab {
         font-size: 1.2rem;
     }

     .card {
         max-width: 20rem;
     }

     .icon img {
         width: 4rem;
         height: 4rem;
     }

     .icon {
         height: 4rem;
     }

     .grid {
         display: flex;
         flex-wrap: wrap;
         gap: 20px;
         justify-content: center;
     }

     .privacy {
         font-size: 1rem !important;
     }


 }

 @media screen and (max-width: 768px) {
     .banner-image {
         max-height: 17rem;
         margin-top: -2rem;
     }

     .banner-image img {
         max-height: 17rem;
         width: auto;
         margin: 0 auto;
     }

     .banner-bg {
         max-width: 100%;
         display: flex;
         flex-direction: column;
     }

     .banner {
         width: 100%;
         padding: 0px;
     }

     .banner-bg {
         max-width: 100%;
     }

     .banner-content {
         max-width: 100%;
     }

     .banner h1 {
         font-size: 1.6rem;
         line-height: 2rem;
         padding: 40px 20px 0px 20px
     }

     .banner p {
         padding: 0px 20px;
     }

     * {
         box-sizing: border-box;
     }

     .banner form {
         display: flex;
         background: white;
         flex-direction: column;
         width: 90%;
         padding: 20px;
         margin: 5%;
         /* лише вертикальні відступи */
         border-radius: 15px;
         gap: 10px;
     }

     .banner input,
     .banner select {
         width: 100%;
     }

     .banner button {
         padding: 0.6rem 1rem;
         width: 100%;
     }

     .tabs {
         display: none;
     }

     .card {
         max-width: 10rem;
     }

     .experts-header {
         padding: 20px;
     }


 }