header {
    width: 100%;
}

header .book-now {
    background: linear-gradient(90deg, #FEB105 0%, #F08518 100%);
}

.hero {
    background: #F0F4FF url('../img/home-banner-bg.png') no-repeat;
    background-size: 100vw 612px;
    height: 612px;
}

.hero-main {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 90px 0 132px 0;
}

.hero-subtitle {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--yellow);
    font-weight: 700;
    font-size: 24px;
    margin-top: 24px;
}

.hero-subtitle.mobile {
    display: none;
}

.hero-heading h1 {
    font-size: 64px;
    font-weight: 700;
    text-shadow: 0px 4px 4px #00000040;
    color: var(--white);
    line-height: 70px;
}

.hero h1.highlight {
    text-shadow: 0px 4px 4px #00000040;
    color: var(--white);
    font-weight: 700;
    font-size: 52px;
    display: inline-block;
    position: relative;
}

.hero h1.highlight::after {
    content: "";
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 100%;
    height: 8px;
    background: #FFFF00;
}


.hero-heading h1 span {
    color: #FFF468;
}

.hero-heading h2 {
    font-size: 42px;
    color: var(--white);
    font-weight: 700;
    margin-top: 8px;
    margin-bottom: 0;
    text-shadow: 0px 4px 4px #00000040;
}

.hero-heading h2.highlight {
    font-size: 42px;
    color: #FFF468;
    font-weight: 700;
    margin-top: 8px;
    text-shadow: 0px 4px 4px #00000040;
}

.hero-main .header-menu-book-now.smaller {
    display: none;
}

.hero-banner {
    width: 512px;
    height: 311px;
}

.hero-main .primary-link { 
    max-width: 337.6px;
    height: 66px;

    font-size: 24px;
    font-weight: 700;
    margin-top: 40px;
}

.support {
    background: var(--white);
    max-width: 100%;
}

.support-list {
    max-width: 1280px;
    margin: 40px auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.support-list .support-item {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    max-width: 410.67px;
    height: 449px;
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    box-shadow: 0px 2px 24px 0px #0C5AA91F;
}

.support-item img {
    width: 245px;
    height: 157px;
}

.support-item h4 {
    margin-bottom: 0;
}

.highlight-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-container .text {
    width: 100%;
    text-align: center;
}

.support-item .tablet,
.support-item .mobile {
    display: none;
}

.support-item .text {
    font-size: 16px;
    font-weight: 500;
    color: var(--secondary);
}

.support-item .text-highlight {
    color: var(--primary);
    font-size: 20px;
    font-weight: 700;
    margin-left: auto;
}

.support-item .text-highlight span.number {
    font-size: 32px;
    font-weight: 700;
}

.support-item .text-highlight {
    position: relative;
    z-index: 2;
    display: inline-block;
}

.support-item .text-highlight::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 4px;
    height: 10px;
    width: 100%;
    z-index: -1;
    background: #FFFF00;
}

.contact {
    max-width: 100%;
    background: linear-gradient(90deg, #2AA0DC 0%, #0161C4 100%);
}

.contact h2 {
    color: var(--white);
    font-size: 32px;
}

.contact h4 {
    color: var(--white);
}

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

.contact .container .contact-item {
    background: var(--white);
    border-radius: 16px;
    max-width: 540px;
    width: 100%;
    height: 199px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 8px 40px;
}

.contact-item .primary-link {
    max-width: 313.6px;
    width: 100%;
    height: 66px;

    font-size: 24px;
    font-weight: 700;
    margin-top: 0;
}

.contact-item > p {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
}

.contact-item > img {
    width: 280px;
    height: 52.11px;
}

.contact-item .secondary-link {
    margin-top: 0;
    max-width: 385.6px;
    width: 100%;
    height: 66px;
    background: var(--primary);
}

.contact-item .secondary-link a {
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
}

.contact-item .secondary-link a p {
    color: inherit;
}

.service.issues {
    padding: 80px 40px 40px;
    max-width: 1360px;
}

.service.types,
.service.systems,
.service.maintains,
.service.calculator {
    padding: 40px 40px 40px;
    max-width: 1360px;
}

.issue p,
.type p {
    font-size: 20px;
    font-weight: 500;
    color: var(--secondary);
}

.system p {
    font-size: 18px;
    font-weight: 500;
    color: var(--secondary);
    max-width: 107px;
}

#issues-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
}

#types-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    width: 100%;
}


#systems-list {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 24px;
    width: 100%;
}

.issue {
    max-width: 302px;
    width: 100%;
    height: 276px;
    background: var(--gray);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
    cursor: pointer;
}

.issue.active {
    border: 1px solid var(--primary);
}

.issue .issue-check {
    display: none;
}

.issue .issue-check img {
    width: 31px;
    height: 31px;
}

.issue.active .issue-check {
    position: absolute;
    display: inline-block;
    top: 4px;
    right: 4px;
}

.issue img {
    width: 180px;
    height: 180px;
}

.type {
    max-width: 236.8px;
    width: 100%;
    height: 274px;
    background: var(--gray);
    border-radius: 16px;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
    cursor: pointer;
}

.type.active {
    border: 1px solid var(--primary);
}

.type .type-check {
    display: none;
}

.type .type-check img {
    width: 31px;
    height: 31px;
}

.type.active .type-check {
    position: absolute;
    display: inline-block;
    top: 4px;
    right: 4px;
}

.type img {
    width: 182px;
    height: 182px;
}

.system {
    max-width: 139px;
    width: 100%;
    height: 204px;
    background: var(--gray);
    border-radius: 16px;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
    cursor: pointer;
}

.system.active {
    border: 1px solid var(--primary);
}

.system .system-check {
    display: none;
}

.system .system-check img {
    width: 31px;
    height: 31px;
}

.system.active .system-check {
    position: absolute;
    display: inline-block;
    top: 4px;
    right: 4px;
}

.system img {
    width: 107px;
    height: 85.6px;
    object-fit: cover;
}

.calculator .container {
    text-align: left;
    padding: 24px 8px 24px 24px;
    background: #FAF4ED;
    border-left: 4px solid var(--primary);
    min-height: 82px;

    display: flex;
    align-items: center;
}

.calculator .container p {
    color: var(--primary);
    font-size: 24px;
    font-weight: 700;
}

#maintains-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--primary);
}

#maintains-list .form-item {
    min-height: 78px;
    padding: 24px;
}

#maintains-list .form-item:not(:last-child) {
    border-bottom: 1px solid var(--primary);
}

#calculator-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

#calculator-list .calculator-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 424px;
    width: 100%;
    height: 429px;
}

.calculator-item-header {
    height: 76px;
    padding: 24px 8px 24px 24px;
    background: var(--primary);
    border-radius: 8px 8px 0 0;
}

.calculator-item-header p {
    text-align: left;
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-align: center;
}

.calculator-item-content {
    height: 343px;
    background: #FAF4ED;
    border: 1px solid var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.calculator-item-content img {
    width: 180px;
    height: 180px;
}

.calculator-item-content p {
    font-size: 20px;
    font-weight: 500;
    color: var(--secondary);
}

#calculator-service {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 46px;
}

.calculator-service-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.calculator-service-item {
    display: grid;
    grid-template-columns: minmax(20px, 1fr) 240px;
    grid-template-rows: auto;
    gap: 4px;
}

.calculator-service-item .left {
    flex: 1;
    text-align: left;
}

.calculator-service-item .right {
    max-width: 240px;
    width: 100%;
}

.calculator-service-item .left:not(.highlight) {
    background: #FAF4ED;
    border: 1px solid var(--primary);
    color: #525252;
    font-size: 18px;
    font-weight: 500;
    min-height: 93px;
    padding: 24px 34px;
    display: flex;
    align-items: center;
}

.calculator-service-item .right:not(.highlight) {
    background: #FAF4ED;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 28px;
    font-weight: 700;
    min-height: 93px;
    padding: 24px 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.calculator-service-item .left.highlight {
    background: var(--primary);
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    height: 82px;
    border-radius: 8px 8px 0 0;
    padding: 24px;
    display: flex;
    align-items: center;
}

.calculator-service-item .right.highlight {
    background: var(--primary);
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    height: 82px;
    border-radius: 8px 8px 0 0;

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.calculator-service-total .left.highlight {
    border-radius: 0;
    height: 93px;
}

.calculator-service-note {
    font-size: 18px;
    font-weight: 500;
    color: #525252;
    text-align: left;
}

#calculator-mail {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.calculator-mail-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
    text-align: center;
}

.calculator-mail-input {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    min-height: 54px;
}

.calculator-mail-input .email-box {
    display: flex;
    flex-direction: column;
    max-width: 593px ;
    width: 100%;
}

.email-input-error {
    color: red;
    font-size: 16px;
    text-align: left;
}

.calculator-mail-input input {
    max-width: 593px;
    width: 100%;
    border: 1px solid #BFC8D1;
    background: #F5FAFF;
}

.calculator-mail-input .primary-link {
    max-width: 240px;
    width: 100%;
    height: 54px;
    margin-top: 0;
}

.calculator-mail-input .primary-link p {
    font-size: 16px;
}

@media only screen and (min-width: 1145px) and (max-width: 1440px) {
    header {
        padding-left: 80px;
        max-width: 100%;
    }

    .hero-main {
        padding: 90px 92px 132px 80px;
        max-width: 100%;
    }
}

@media only screen and (min-width: 1024px) and (max-width: 1144px) {
    header {
        padding-left: 40px;
    }
    .hero-main {
        padding: 40px;
    }
    #systems-list {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 24px;
    }

    #types-list {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1023px) {
    .hero {
        background: #F0F4FF url('../img/home-tablet-banner-bg.png') no-repeat;
        background-size: 100vw 771px;
        height: 771px;
    }
    .header-menu, .header-menu-btn {
        display: block;
    }
    header {
        padding: 0 40px;
    }
    header .contact-section {
        display: none;
    }
    .header-menu .primary-link {
        max-width: 342.6px;
        height: 66px;
    }
    .header-menu.show {
        gap: 40px;
    }
    .hero-main {
        flex-direction: column;
        padding: 64px 90px 64px 82px;
        align-items: center;
        justify-content: center;
    }
    .hero-heading {
        text-align: center;
    }
    .hero-heading h1 {
        line-height: 64px;
    }
    .hero-heading .header-menu-book-now.desktop {
        display: none;
    }
    .hero-main .header-menu-book-now.smaller {
        display: inline-block;
        max-width: 337.6px;
        width: 100%;
        height: 66px;
        margin-top: 0;
    }
    .hero-subtitle {
        font-size: 24px;
        text-align: center;
    }
    .hero-banner {
        width: 434px;
        height: 263px;
        margin: 66px 0;
    }
    .hero-heading h1 {
        font-size: 48px;
        font-weight: 700;
    }

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

    .hero h1.highlight::after {
        height: 5px;
    }

    .hero-heading h2 {
        font-size: 32px;
    }

    .hero-heading h2.highlight {
        font-size: 32px;
    }
    .contact .container {
        flex-direction: column;
    }
    .support-list {
        flex-direction: column;
        align-items: center;
    }

    .support-item .desktop,
    .support-item .mobile {
        display: none;
    }

    .support-item .tablet {
        display: inline-block;
    }

    .support-list .support-item {
        max-width: 528px;
        height: 449px;
    }

    .contact h2 {
        margin-bottom: 24px;
    }

    .service.issues {
        padding: 64px 40px 40px;
    }

    .service.types,
    .service.systems,
    .service.maintains,
    .service.calculator {
        padding: 32px 40px 32px;
    }

    #issues-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    #types-list{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    #systems-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .issue {
        max-width: 100%;
        width: 212px;
        height: 260px;
    }

    .issue img {
        width: 156px;
        height: 156px;
    }

    .type {
        max-width: 100%;
        width: 213px;
        height: 274px;
    }

    .system {
        max-width: 100%;
        width: 213px;
        height: 232px;
        padding: 16px;
    }

    .system img {
        width: 181px;
        height: 144.8px;
    }

    .system p { 
        max-width: 181px;
    }

    #calculator-list {
        flex-direction: column;
    }

    #calculator-list .calculator-item {
        gap: 4px;
        flex-direction: row;
        max-width: 100%;
        height: 308px;
    }

    .calculator-item-header {
        height: unset;
        border-radius: 8px 0 0 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 342px;
        width: 100%;
    }

    .calculator-item-header p {
        font-size: 32px;
        font-weight: 700;
    }

    .calculator-item-content {
        height: unset;
        min-width: 342px;
        width: 100%;
    }

    .calculator-item-content img {
        height: 180px;
        width: 180px;
        object-fit: cover;
    }

    .calculator-service-item {
        grid-template-columns: minmax(20px, 1fr) 188px;
    }

    .calculator-service-item .left.highlight {
        font-size: 20px;
        height: 76px;
        min-width: 496px;
        width: 100%;
    }

    .calculator-service-item .left.highlight.sum {
        font-size: 20px;
        height: 93px;
        min-width: 496px;
        width: 100%;
    }

    .calculator-service-item .right.highlight {
        font-size: 20px;
        height: 76px;
    }

    .calculator-mail-input .email-box {
        max-width: 100%;
        width: 100%;
    }

    .calculator-service-item .right:not(.highlight) {
        min-height: 93px;
    }

    .highlight-container:first-of-type .text {
        padding-right: 9px;
    }

    .calculator-service-item .left:not(.highlight) {
        min-width: 496px;
        width: 100%;
    }

    .contact h4 {
        font-size: 18px;
    }

    .contact .container .contact-item {
        max-width: 688px;
    }
}

@media only screen and (max-width: 767px) {
    .hero {
        background: #F0F4FF url('../img/home-mobile-banner-bg.png') no-repeat;
        background-size: 100vw 576px;
        height: 576px;
    }

    header {
        padding: 0 16px;
    }

    .hero-main {
        padding: 38px 5px 40px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .hero-heading {
        text-align: center;
    }

    .hero-subtitle.desktop {
        display: none;
    }

    .hero-subtitle.mobile {
        display: block;
        max-width: 200px;
        margin: 16px auto;
        text-align: left;
        font-size: 20px;
    }

    .hero-heading h1 {
        font-size: 34px;
        font-weight: 700;
        line-height: 44px;
    }

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

    .hero h1.highlight::after {
        height: 4px;
    }

    .hero-heading h2 {
        font-size: 20px !important;
        margin: 0 0 8px 0 !important;
    }

    .hero-banner {
        width: 332px;
        height: 201px;
    }

    .header-menu .primary-link {
        max-width: 327px;
        height: 54px;
    }
    
    .header-menu.show {
        gap: 40px;
    }

    .hero-heading .header-menu-book-now.desktop {
        display: none;
    }
    .hero-main .header-menu-book-now.smaller {
        display: inline-block;
        max-width: 241.6px;
        width: 100%;
        height: 54px;
        margin-top: 16px;
        font-size: 16px;
        line-height: 24px;
    }

    .service.types,
    .service.systems,
    .service.maintains,
    .service.calculator {
        padding: 24px 16px 24px;
    }

    #issues-list,
    #types-list,
    #systems-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        max-width: 375px;
    }

    .issue, .type, .system {
        gap: 8px;
    }

    .issue p, .type p, .system p {
        font-size: 16px;
    }

    .system p { 
        max-width: 130px;
    }

    .issue {
        width: 162px;
        height: 222.88px;
    }

    .issue img {
        width: 144px;
        height: 144px;
    }

    .type {
        width: 162px;
        height: 184px;
    }

    .type img {
        width: 96px;
        height: 96px;
    }

    .system {
        width: 162px;
        height: 192px;
    }

    .system img {
        width: 120px;
        height: 96px;
    }

    .contact .container {
        flex-direction: column;
        padding: 0;
    }

    .contact .container .contact-item {
        padding: 24px;
        max-width: 327px;
    }

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

    .contact-item-text {
        max-width: 266px;
        width: 100%;
    }

    .contact-item .secondary-link a {
        font-size: 16px;
        font-weight: 700;
    }

    .calculator-mail-input {
        flex-direction: column;
        align-items: center;
    }

    #calculator-list {
        flex-direction: column;
    }

    .form-control {
        text-align: left;
        font-size: 16px;
        font-weight: 700;
    }

    #maintains-list .form-item {
        padding: 16px;
        display: flex;
        align-items: center;
        min-height: 60px;
    }

    .calculator-service-item {
        grid-template-columns: minmax(20px, 1fr) 121px;
    }

    .calculator-item-header p {
        font-size: 20px;
        text-align: center;
    }

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

    #calculator-list {
        gap: 16px;
    }

    #calculator-list .calculator-item {
        height: fit-content;
    }

    .calculator-item-content img {
        width: 180px;
        height: 180px;
        object-fit: contain;
    }

    .calculator-item-content {
        height: 270px;
        gap: 8px;
    }

    .calculator-item-header {
        height: 76px;
    }

    .calculator-service-item .right.highlight {
        max-width: 121px;
        height: 73px;
        font-size: 18px;
        font-weight: 700;
        padding: 24px 8px;
    }
    .calculator-service-item .left.highlight {
        height: 73px;
        font-size: 18px;
        font-weight: 700;
        padding: 24px 8px;
    }

    .calculator-service-item .left:not(.highlight) {
        min-height: 76px;
        padding: 14px 8px;
        font-size: 16px;
    }

    .calculator-service-item .right:not(.highlight) {
        min-height: 76px;
        padding: 14px 8px;
        font-size: 20px;
        font-weight: 700;
    }

    .calculator-service-item .right:not(.highlight).sum {
        min-height: 76px;
    }

    .calculator-service-item .right {
        max-width: 121px;
    }

    .support-item .desktop,
    .support-item .tablet {
        display: none;
    }

    .support-item .mobile {
        display: inline-block;
    }

    .support-list .support-item {
        padding: 24px 16px;
        height: 445px;
    }

    .support-item h4 {
        font-size: 20px;
    }

    .support-item .text {
        font-size: 14px;
    }

    .highlight-container .text {
        max-width: 155px;
    }

    .support-item .text-highlight {
        font-size: 18px;
    }

    .support-item .text-highlight span.number {
        font-size: 24px;
    }

    .service.contact {
        padding: 40px 20px !important;
    }

    .contact-item .primary-link {
        max-width: 240px;
        height: 56px;
        font-size: 16px;
    }

    .calculator-mail-input .email-box {
        max-width: 100%;
        width: 100%;
    }

    .calculator-mail-text {
        font-size: 18px;
    }
}

@media only screen and (max-width: 320px) {
    #issues-list, #types-list, #systems-list {
        grid-template-columns: repeat(1, 1fr);
        justify-items: center;
    }

    .issue, .type, .system {
        width: 100%;
        max-width: 100%;
    }
}