/* Modern controls and small-screen layout for the PCTECH site. */
:root { --green: #98d82a; --header-height: 64px; }
html { scroll-behavior: smooth; }
html, body { overflow: visible; color: #313131; }
body { overflow-x: clip; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #187c43 !important; outline-offset: 3px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 10030; background: white; color: #313131; padding: 10px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.section-anchor { position: absolute; top: 0; left: 0; }
.anchorClass { min-width: 0 !important; min-height: max(650px, 100svh); }
#main-content { overflow: visible; }
.menu-toggle { display: none; }

#header nav a { position: relative; }
#header .wrap { max-width: 1246px; margin: auto; }
#header .home { display: inline-flex; align-items: center; height: var(--header-height); text-decoration: none; }
#header img#brand-logo { display: block; flex: none; float: none; height: auto; padding: 0; }
#header nav ul a.active { background: url(/assets/theme/menu_active.png) center top / 100% 76px no-repeat; height: 76px; color: #293819; }
#header nav a:hover { text-decoration: underline; }
#header .language-switcher { position: absolute; z-index: 10022; top: 0; right: 0; }
#header .language-switcher summary { display: flex; align-items: center; gap: 5px; min-height: 24px; padding: 0 7px; background: #363638; color: #fff; font-size: 11px; cursor: pointer; list-style: none; }
#header .language-switcher summary::-webkit-details-marker { display: none; }
#header .language-switcher summary::after { content: ''; border: 4px solid transparent; border-bottom: 0; border-top-color: currentColor; }
#header .language-switcher .language-list { position: absolute; top: 100%; right: 0; width: max-content; min-width: 148px; padding: 5px; background: #fff; border: 1px solid #ddd; border-radius: 0 0 3px 3px; box-shadow: 0 5px 15px #0002; }
#header .language-list a { display: block; padding: 9px 11px; color: #313131; text-decoration: none; font-size: 13px; }
#header .language-list a:hover, #header .language-list a[aria-current="page"] { background: #e2f3c9; }
#what-we-do { background-position: min(0px, calc(50vw - 950px)) 25%; }
#what-we-do .content { line-height: 1.375; }
#what-we-do .description { padding-left: 49vw; }
#what-we-do .opening-prayer {
  position: absolute;
  bottom: clamp(42px, 8vh, 84px);
  left: clamp(24px, 17vw, 255px);
  width: clamp(125px, 11vw, 155px);
  height: auto;
}
#our-method .description > h2,
#contact .description h2,
#footer-partenaires h2,
#pricing .description > .left > h2 { font-family: Oswald, sans-serif; font-weight: 400; text-transform: uppercase; margin: 0; }
#our-method .description > h2 { font-size: 50px; line-height: 55px; height: 50px; padding-left: 60px; }
#our-method .description div div.desc_1 { line-height: 1.45; }

.carousel { position: relative; }
.carousel > .carousel-inner { position: relative; overflow: hidden; isolation: isolate; }
.carousel .item:not(.active, .is-leaving) { display: none; }
.carousel .item { display: flow-root; box-sizing: content-box; }
.carousel > .carousel-inner > .item.is-leaving { position: absolute; inset: 0 0 auto; z-index: -1; pointer-events: none; }
.carousel .item img { display: block; }
.carousel .item .content { touch-action: pan-y; }
#features .carousel-inner { color: #313131; }
#features .carousel .item .content h2 { color: #313131; }
#benefits .description .title, #features .description .title, #options .description .title { color: var(--green); }
#features .description .title { color: #527d14; }
.sliding .carousel { touch-action: pan-y; }
.sliding .description .next-slide, .sliding .description .prev-slide { width: 44px; height: 54px; top: 186px; background-position: center; border: 0; background-color: transparent; }
.sliding .description .next-slide { display: block; right: 18px; }
.sliding .description .prev-slide { display: block; left: 18px; }
.sliding .description .pager { position: absolute; inset: auto 0 11px; width: 100%; visibility: visible; }
.sliding .pager ul { display: flex; justify-content: center; height: 24px; }
.sliding .pager ul li { width: 20px; }
.sliding .dot { display: grid; width: 20px; height: 24px; place-items: center; padding: 0; border: 0; background: none; color: white; }
.sliding .dot::after { content: ''; display: block; width: 8px; height: 8px; background: currentColor; border-radius: 50%; }
#features .dot { color: #313131; }
.sliding .dot[aria-current="true"] { color: var(--green) !important; }
.contact_next { text-decoration: none; }

#pricing { min-height: max(650px, 100svh); }
#pricing .description { display: grid; grid-template-columns: 280px minmax(0, 1fr) 280px; }
#pricing .description .left, #pricing .description .right, #pricing .description .total { float: none; width: auto; }
#pricing .description > .left > h2 { font-size: 38px; line-height: 41px; padding: 50px 0 15px; margin: 0 30px; }
#pricing .left p + p { margin-top: 14px; }
#pricing .left p:empty, #pricing .left p:has(> br:only-child) { display: none; }
#pricing .left .bottom a { text-decoration: none; white-space: nowrap; }
#pricing .left .bottom a:hover { text-decoration: underline; }
#pricing .description > .right { margin: 0; min-width: 0; }
#pricing .description > .right > .content { width: auto; height: auto; padding: 40px 50px; overflow: visible; }
#pricing .description > .right h3 { font-size: 16px; font-weight: 400; margin: 0; padding: 0 0 2px 32px; line-height: 28px; background-repeat: no-repeat; background-position: 0 3px; }
#pricing .computers h3 { background-image: url(/assets/theme/pricing/computer.png); }
#pricing .users h3 { background-image: url(/assets/theme/pricing/shadow.png); }
#pricing .servers h3 { background-image: url(/assets/theme/pricing/servers.png); }
#pricing .others h3 { background-image: url(/assets/theme/pricing/option.png); }
#pricing .description .right .content :is(#slider-range-computer, #slider-range-user, #slider-range-server) { display: inline-block; width: calc(100% - 31px); margin: 0 0 5px; height: 22px; padding: 0; appearance: none; background: none; vertical-align: middle; cursor: pointer; }
.pricing_slider::-webkit-slider-runnable-track { height: 11px; border-radius: 6px; border: 1px solid #d7d7d7; background: linear-gradient(to right, var(--green) var(--progress, 0%), #fafbfb var(--progress, 0%)); }
.pricing_slider::-moz-range-track { height: 9px; border-radius: 6px; border: 1px solid #d7d7d7; background: #fafbfb; }
.pricing_slider::-moz-range-progress { height: 9px; border-radius: 6px; background: var(--green); }
.pricing_slider::-webkit-slider-thumb { appearance: none; width: 24px; height: 24px; margin-top: -8px; border: 1px solid #ccc; border-radius: 2px; background: #fff; }
.pricing_slider::-moz-range-thumb { width: 22px; height: 22px; border: 1px solid #ccc; border-radius: 2px; background: #fff; }
#pricing .description .right .content .value { padding: 0; margin: 0; width: 29px; right: 0; top: 30px; height: auto; font-size: 16px; }
#pricing .description .right .others ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#pricing .description .right .others ul li { float: none; width: auto; height: auto; margin: 0; padding: 0; min-width: 0; }
#pricing .description .right .others ul li:has(input:checked) { background: var(--green); }
#pricing .description .right .others ul li .option { box-sizing: border-box; display: flex; gap: 5px; align-items: center; justify-content: space-between; min-height: 42px; width: auto; height: 100%; padding: 7px 6px 7px 12px; cursor: pointer; line-height: 1.25; }
#pricing .option input { margin: 0; appearance: none; flex: 0 0 20px; width: 20px; height: 20px; cursor: pointer; background: url(/assets/theme/unchecked.png) center / contain no-repeat; }
#pricing .option input:checked { background-image: url(/assets/theme/checked.png); }
#pricing .description .total .label { min-width: 121px; width: fit-content; padding: 0 5px; }
#pricing .description .total .amount { color: #57830e; }
#pricing .description::after { position: absolute; top: 100%; pointer-events: none; }

#contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  padding: calc(var(--header-height) + clamp(24px, 4vh, 36px)) 0 100px;
}
#contact .description {
  position: relative;
  inset: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(24px, 4vh, 40px) clamp(24px, 5vw, 72px);
  width: min(90%, 1094px);
  height: auto;
  margin: auto auto clamp(24px, 4vh, 40px);
}
#contact .description :is(.left, .right) { width: auto; min-width: 0; padding: 0; float: none; }
#contact .description .right { padding-right: 22px; }
#contact .description h2 { font-size: 60px; line-height: 1; }
#contact .description :is(.left, .right) .content a { color: #537a13; text-decoration: none; }
#contact .description a:hover { text-decoration: underline; }
.contact-location {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.85fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid #dfe4d7;
  border-radius: 5px;
  background: #f4f5f2;
}
.contact-location-info { padding: clamp(18px, 3vw, 30px); }
#contact .description .contact-location h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.15; }
.contact-location address { margin: 10px 0 15px; font-size: 15px; font-style: normal; line-height: 1.5; }
.contact-directions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  box-sizing: border-box;
  padding: 8px 15px;
  border-radius: 3px;
  background: #426714;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.contact-directions:hover { background: #304e0b; }
.contact-location .contact-map { display: block; width: 100%; height: clamp(236px, 31vh, 328px); border: 0; }
#footer-partenaires h2 { float: left; font-size: 24px; margin: 34px 0 0; padding-right: 22px; border-right: 1px solid #b3b3b3; }

@media (min-width: 1051px) {
  html { scrollbar-width: none; }
}

@media (max-width: 1300px) {
  :root { --header-height: 59px; }
  #header .home { padding-left: 20px; }
  #header nav ul a.active { background-size: 100% 70px; height: 70px; }
  #what-we-do { background-position: min(0px, calc(50vw - 815px)) 25%; }
  #our-method .description > h2 { font-size: 32px; line-height: 34px; height: 34px; }
  #pricing .description { grid-template-columns: 240px minmax(0, 1fr) 250px; }
  #pricing .description > .left > h2 { font-size: 32px; line-height: 33px; }
  #pricing .description > .right h3 { font-size: 14px; }
  #pricing .description > .right > .content { padding: 40px 44px 32px 50px; }
  #pricing .description .right .others ul li .option { font-size: 12px; }
  #pricing .description .total .amount { font-size: 70px; }
  #contact .description h2 { font-size: 32px; }
  #footer-partenaires h2 { font-size: 18px; padding-right: 30px; }
}

@media (max-width: 1050px) {
  :root {
    --header-height: 58px;
    --mobile-panel-height: calc(100vh - var(--header-height));
    --mobile-panel-padding: clamp(18px, 4vh, 36px);
  }
  @supports (height: 100dvh) {
    :root {
      --mobile-panel-height: calc(100dvh - var(--header-height));
      --mobile-panel-padding: clamp(18px, 4dvh, 36px);
    }
  }
  .anchorClass {
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    min-height: var(--mobile-panel-height);
    scroll-margin-top: var(--header-height);
    padding-bottom: 54px;
  }
  .section-anchor { scroll-margin-top: var(--header-height); }
  #main-content.touch-section-navigation { touch-action: pinch-zoom; }
  #main-content.touch-section-navigation :is(.sliding .carousel, .carousel .item .content) { touch-action: pinch-zoom; }
  #page { padding-top: var(--header-height); }
  #header { box-sizing: border-box; height: var(--header-height); }
  #header .head-wrap.group, #header .wrap.group { box-sizing: border-box; width: 100%; }
  #header .language-switcher { right: 14px; top: 7px; }
  #header .language-switcher summary { min-height: 44px; }
  #header .home { margin-left: 16px; padding-left: 0; }
  #header img#brand-logo { width: clamp(78px, 23vw, 104px); }
  #header .menu-toggle { display: block; position: absolute; right: 80px; top: 7px; min-height: 44px; padding: 0 10px; background: #fff; color: #313131; border: 1px solid #c7c7c7; border-radius: 3px; }
  #header nav {
    display: none;
    position: absolute;
    left: 0;
    top: var(--header-height);
    width: 100%;
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    overflow: auto;
    overscroll-behavior-y: contain;
    background: #fff;
    box-shadow: 0 8px 16px #0002;
  }
  #header nav.is-open { display: block; }
  #header nav ul { width: 100%; height: auto; display: block; float: none; }
  #header nav ul li { float: none; width: auto; margin: 0; }
  #header nav ul li a { text-align: left; padding: 0 20px; line-height: 44px; }
  #header nav ul a.active { height: auto; background: #e2f3c9; }
  #what-we-do { background-image: none; }
  #what-we-do::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 49%;
    background: linear-gradient(to right, transparent 80%, #303031),
                url(/assets/theme/whatwedo2.jpg) 40% 62% / auto min(165%, 105vw) no-repeat;
  }
  #what-we-do .description { position: relative; inset: auto; height: auto; margin: 0; box-sizing: border-box; width: 100%; padding: var(--mobile-panel-padding) 5% var(--mobile-panel-padding) 49%; }
  #what-we-do .description h1, #what-we-do .description div { width: auto; float: none; }
  #what-we-do .content { padding-top: clamp(12px, 3dvh, 25px); }
  #what-we-do .partners { padding-top: clamp(12px, 3dvh, 26px); }
  #what-we-do .partners ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; gap: 12px; max-width: 420px; margin: 0; }
  #what-we-do .partners ul li { height: auto; padding: 0; border: 0; }
  #what-we-do .partners img { display: block; max-width: 100%; height: auto; }
  #our-method .description { position: relative; inset: auto; width: min(880px, 100%); height: auto; margin: 0 auto; padding: var(--mobile-panel-padding) 24px; box-sizing: border-box; background-position: left 18px center; background-size: 39% auto; }
  #our-method .description > h2 { padding-left: 0; }
  #our-method .description div.method1, #our-method .description div.method2, #our-method .description div.method3 { float: none; width: auto; margin: 0 0 0 42%; padding: clamp(8px, 2dvh, 12px) 0; }
  #our-method .description div div.desc_1 { width: auto; }
  #our-method .description .method1, #our-method .description .method2, #our-method .description .method3 { font-size: 14px; }
  #benefits .description, #features .description, #options .description { position: relative; inset: auto; width: 100%; height: auto; margin: 0; padding: var(--mobile-panel-padding) 0 25px; }
  .carousel > .carousel-inner > .item {
    width: min(74%, 760px) !important;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 24px;
    min-height: clamp(170px, calc(var(--mobile-panel-height) * .53), 320px);
    align-items: center;
  }
  .carousel > .carousel-inner > .item img {
    width: 100%;
    max-width: 315px;
    max-height: clamp(112px, calc(var(--mobile-panel-height) * .60), 352px);
    object-fit: contain;
    padding: 0;
  }
  .carousel > .carousel-inner > .item div.content { width: auto; padding: 0; }
  .carousel > .carousel-inner > .item div.content h2 { width: auto; }
  #benefits .description span.title, #features .description span.title, #options .description span.title { margin: 0; padding-bottom: 12px; }
  :is(#benefits, #features, #options) .description h2 { margin-top: 0; }
  .sliding .description .next-slide, .sliding .description .prev-slide { top: 44%; }
  .sliding .description .pager { bottom: 0; }
  .anchorClass > :is(.light_next, .dark_next, .contact_next) { bottom: 0; height: 48px; background-size: 100% 100%; }
  .anchorClass > :is(.light_next, .dark_next) { width: 50px; margin-left: -25px; }
  .anchorClass > .contact_next { line-height: 48px; }
  #pricing { min-height: 0; padding-top: 46px; padding-bottom: 94px; }
  #pricing .description { position: relative; inset: auto; width: min(930px, 94%); height: auto; margin: 0 auto; grid-template-columns: minmax(165px, 1fr) minmax(220px, 1.7fr) minmax(130px, .8fr); }
  #pricing .description::after { display: none; }
  #pricing .description > .left > h2, #pricing .description .left .content, #pricing .description .left .bottom { width: auto; margin: 0; }
  #pricing .description > .left { padding: 24px; height: auto; }
  #pricing .description > .left > h2 { padding: 0 0 15px; }
  #pricing .description .left .bottom { position: static; margin-top: 24px; }
  #pricing .description > .right > .content { padding: 24px; }
  #pricing .description .total .amount { font-size: clamp(42px, 7vw, 65px); }
  #contact { padding: var(--mobile-panel-padding) 0 0; }
  #contact .description { width: min(930px, 90%); margin-bottom: var(--mobile-panel-padding); }
  #contact .description .left, #contact .description .right { width: auto; padding: 0 22px; }
  #contact .description :is(.left, .right) .content { font-size: clamp(18px, 2.8vw, 24px); line-height: 1.25; padding-top: clamp(12px, 4dvh, 26px); }
  #contact .description .content a { overflow-wrap: anywhere; }
  #contact .description .content .notes { padding-top: clamp(12px, 4dvh, 30px); }
  #contact .right .content .notes { width: auto; }
  #contact .bottom { position: relative; height: auto; padding: clamp(12px, 3dvh, 20px) 0; margin-top: auto; }
  #contact .bottom #footer-partenaires { width: min(930px, 90%); display: flex; align-items: center; gap: 16px; }
  #footer-partenaires h2 { margin: 0; padding-right: 12px; }
  #contact .bottom #footer-partenaires img { width: 100%; min-width: 0; height: auto; margin: 0; padding: 0; }
}

@media (min-width: 641px) and (max-width: 1050px) and (max-height: 500px) {
  #our-method .description { padding-block: 12px; }
  #our-method .description div.method1, #our-method .description div.method2, #our-method .description div.method3 { padding-block: 6px; }
  #our-method .description div h2 { font-size: 22px; line-height: 1.15; }
}

@media (max-width: 640px) {
  :root { --phone-gutter: clamp(16px, 5vw, 26px); }
  #what-we-do {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(clamp(72px, 15dvh, 120px), 1fr) auto auto;
  }
  #what-we-do::before {
    position: static;
    width: auto;
    background: linear-gradient(transparent 84%, #303031),
                url(/assets/theme/whatwedo2.jpg) 40% 62% / auto min(165%, 200vw) no-repeat;
  }
  #what-we-do .description { width: min(100%, 560px); margin-inline: auto; padding: clamp(12px, 2dvh, 18px) var(--phone-gutter) 16px; }
  #what-we-do .description h1 { font-size: clamp(27px, 8vw, 34px); line-height: 1.1; }
  #what-we-do .content { padding-top: clamp(12px, 2.5dvh, 15px); }
  #what-we-do .partners { padding-top: clamp(12px, 3dvh, 20px); }
  #what-we-do .opening-prayer {
    position: static;
    justify-self: start;
    margin: 0 max(var(--phone-gutter), calc((100% - 560px) / 2 + var(--phone-gutter))) 10px;
  }
  #our-method .description { max-width: 560px; padding: var(--mobile-panel-padding) var(--phone-gutter) 12px; background: none; }
  #our-method .description > h2 { height: auto; margin-bottom: 10px; }
  #our-method .description > h2::after {
    content: '';
    display: block;
    width: min(100%, 410px, calc(var(--mobile-panel-height) * .65));
    aspect-ratio: 1241 / 405;
    margin: 14px auto 0;
    background: url(/assets/theme/ourmethod/background.png) center / contain no-repeat;
  }
  #our-method .description div.method1, #our-method .description div.method2, #our-method .description div.method3 { margin-left: 0; }
  .sliding { --slide-image-height: clamp(116px, min(49vw, calc(var(--mobile-panel-height) * .30)), 230px); }
  .carousel > .carousel-inner > .item {
    display: block;
    width: min(calc(100% - var(--phone-gutter) * 2), 520px) !important;
    min-height: 0;
  }
  .carousel > .carousel-inner > .item img {
    float: none;
    width: min(calc(100% - 54px), 260px);
    height: var(--slide-image-height);
    object-fit: contain;
    margin: 0 auto clamp(10px, 3dvh, 18px);
  }
  .carousel > .carousel-inner > .item div.content { float: none; padding-bottom: 16px; line-height: 1.45; }
  :is(#benefits, #features, #options) .description .title { font-size: clamp(22px, 6vw, 28px); line-height: 1.15; }
  :is(#benefits, #features, #options) .description .content h2 { font-size: clamp(27px, 7vw, 34px); line-height: 1.12; }
  .sliding .description .next-slide, .sliding .description .prev-slide { top: calc((var(--slide-image-height) - 54px) / 2); }
  .sliding .description .next-slide { right: 2px; }
  .sliding .description .prev-slide { left: 2px; }
  #pricing .description { grid-template-columns: minmax(0, 1fr); width: min(94%, 450px); }
  #pricing .description .total { border-left: 0; border-top: 1px solid #ddd; padding: 16px 0; box-sizing: border-box; }
  #pricing .description .total .content { height: auto; margin: 0; top: auto; }
  #pricing .description .total .amount { padding-bottom: 4px; }
  #contact .description { grid-template-columns: minmax(0, 1fr); width: min(calc(100% - var(--phone-gutter) * 2), 560px); gap: 32px; }
  #contact .description :is(.left, .right) { padding-inline: 0; }
  #contact .description .right { border: 0; }
  .contact-location { grid-template-columns: minmax(0, 1fr); }
  #contact .description :is(.left, .right) .content { padding-top: 12px; font-size: clamp(18px, 5vw, 23px); }
  #contact .description .left .notes, #contact .description .right .notes { padding-top: 12px; }
  #contact .bottom #footer-partenaires { flex-direction: column; }
  #footer-partenaires h2 { border: 0; padding: 0; }
}

@media (max-width: 1050px) and (max-height: 690px) {
  #what-we-do .description { padding-block: 8px 10px; }
  #what-we-do .description h1 { font-size: clamp(24px, 7vw, 29px); line-height: 1.1; }
  #what-we-do .content { padding-top: 10px; font-size: 14px; }
  #what-we-do .partners { padding-top: 12px; }
}

@media (max-width: 1050px) and (max-height: 500px) and (orientation: landscape) {
  #what-we-do { display: flex; padding-bottom: 0; }
  #what-we-do::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 39%;
    background: linear-gradient(to right, transparent 80%, #303031),
                url(/assets/theme/whatwedo2.jpg) 40% 62% / auto 100% no-repeat;
  }
  #what-we-do .description { width: 100%; margin: 0; padding-inline: 40% 16px; }
  #what-we-do .opening-prayer {
    position: absolute;
    inset: auto auto 52px clamp(12px, 4vw, 38px);
    width: 110px;
    margin: 0;
  }
  #what-we-do > .next { left: 19.5%; }
}

@media (max-width: 1050px) and (max-height: 360px) and (orientation: landscape) {
  #what-we-do::before { width: 34%; }
  #what-we-do .description { padding-inline-start: 35%; }
  #what-we-do .description h1 { font-size: 24px; }
  #what-we-do .content { line-height: 1.3; }
  #what-we-do > .next { left: 17%; }
}

@media (max-width: 360px) {
  #header .home { margin-left: 10px; }
  #header img#brand-logo { width: clamp(55px, 23vw, 76px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
