/* ==========================================================================
   ТОВ "ТЕХНО-МАГ" — Static Stylesheet (1:1 migration from tehnomag.com.ua)
   Pure Vanilla CSS — no frameworks, no preprocessors
   ========================================================================== */

:root {
  --color-brand: #00a1e6;
  --color-brand-bright: #00aeff;
  --color-brand-hover: #0095e6;
  --color-footer-bg: #0eb0ee;
  --color-text: #6c6f74;
  --color-paragraph: #737373;
  --color-list: #7c7c7c;
  --color-heading: #273039;
  --color-black: #000000;
  --color-white: #ffffff;
  --color-border-footer: #737373;
  --color-border-light: #e4e3e7;
  --font-sans: "Helvetica Neue", Helvetica, Arial, "Open Sans", sans-serif;
  --font-display: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   1. Reset & Base Typography
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-text);
  line-height: 24px;
  letter-spacing: 0.05em;
  background-color: var(--color-white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: inherit;
  color: var(--color-heading);
  margin: 0;
  line-height: 1.1;
}

h1 {
  font-size: 35px;
  margin-bottom: 15px;
  font-weight: 800;
}

h2 {
  font-size: 30px;
  font-weight: 500;
}

h3 {
  font-size: 26px;
  margin-bottom: 24px;
  font-weight: 500;
}

h4 {
  font-size: 24px;
  font-weight: 500;
}

h5 {
  font-size: 20px;
  margin-bottom: 24px;
  font-weight: 500;
}

h6 {
  font-size: 15px;
  margin-bottom: 10px;
  font-weight: 700;
}

p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--color-paragraph);
  line-height: 24px;
  font-weight: 400;
}

a {
  color: var(--color-brand);
  text-decoration: none;
  transition: color 0.25s ease-out;
}

a:hover,
a:focus {
  color: var(--color-brand);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

img {
  border: 0;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

ul,
ol {
  margin: 0 0 10px;
  padding-left: 40px;
}

li {
  color: var(--color-list);
}

strong,
b {
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   2. Responsive Container (750 / 970 / 1170px breakpoints)
   ========================================================================== */

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.container-fluid {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

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

@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}

@media (min-width: 1200px) {
  .container {
    width: 1170px;
  }
}

/* ==========================================================================
   3. Preloader
   ========================================================================== */

.preloader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-white);
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader {
  width: 80px;
  height: 80px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-image: url("../img/pl.GIF");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* ==========================================================================
   4. Header Section (Language Switcher + Logo + Contacts)
   ========================================================================== */

.header-section {
  margin-top: 20px;
}

.lang-row {
  display: flex;
  justify-content: flex-end;
}

.language-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.language-menu > li {
  display: inline-block;
  margin: 0;
  padding: 0;
}

.language-menu > li a {
  color: var(--color-brand);
  font-size: 13px;
  line-height: 24px;
}

.language-menu > li.current-lang a {
  text-decoration: underline;
  color: var(--color-black);
}

.header-brand-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.header-logo-col,
.header-contacts-col {
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

.main-logo {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: auto;
}

.contacts-title {
  font-size: 30px;
  color: var(--color-black);
  margin: 30px 0;
  line-height: 1.2;
  font-weight: 400;
}

.contacts-block {
  margin-bottom: 10px;
}

.contacts-block-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}

.e-info {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.e-info img {
  flex-shrink: 0;
}

.e-info .phone-link {
  color: inherit;
}

.e-info .phone-link:hover {
  color: var(--color-brand);
}

@media (min-width: 768px) {
  .header-logo-col {
    width: 16.66666667%;
    margin-left: 16.66666667%;
  }

  .header-contacts-col {
    width: 41.66666667%;
    margin-left: 25%;
  }
}

/* ==========================================================================
   5. Top Navigation Bar & Dropdown Submenu
   ========================================================================== */

.topmenu {
  background: url("../img/bg-topmenu.png") center top no-repeat;
  padding-left: 0;
  padding-right: 0;
  position: relative;
  z-index: 1000;
}

.navbar {
  position: relative;
  min-height: 51px;
  margin: 0;
  padding: 0;
  background: transparent;
  width: 100%;
}

.main-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  width: 100%;
  min-height: 51px;
}

.navbar-header {
  display: none;
}

.navbar-toggle {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 10px;
  margin: 8px 0;
  background-color: var(--color-brand-bright);
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.navbar-toggle:hover {
  background-color: var(--color-brand-hover);
}

.navbar-toggle .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background-color: var(--color-white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.navbar-toggle[aria-expanded="true"] .icon-bar:nth-child(2) {
  transform: translateY(6px) rotate(45deg);
}

.navbar-toggle[aria-expanded="true"] .icon-bar:nth-child(3) {
  opacity: 0;
}

.navbar-toggle[aria-expanded="true"] .icon-bar:nth-child(4) {
  transform: translateY(-6px) rotate(-45deg);
}

.navbar-collapse {
  display: block;
}

.navbar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
}

.navbar-nav > li {
  position: relative;
  margin-top: 5px;
  margin-left: 30px;
}

.navbar-nav > li:first-child {
  margin-left: 0;
}

.navbar-nav > li > a {
  display: block;
  color: var(--color-white);
  font-size: 14px;
  line-height: 20px;
  text-transform: uppercase;
  padding: 5px 0;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.35s ease;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
  background: none;
  color: var(--color-black);
  text-decoration: underline;
}

.navbar-nav > li.current-menu-item > a,
.navbar-nav > li.current-menu-ancestor > a {
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 700;
}

/* Submenu (Desktop dropdown) */
.menu-item-has-children > .sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 1000;
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--color-brand-bright);
  width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu,
.menu-item-has-children.is-open > .sub-menu {
  display: block;
}

.menu-item-has-children > .sub-menu > li {
  list-style: none;
  margin: 0;
  padding: 5px 15px;
  border-bottom: 1px solid var(--color-white);
}

.menu-item-has-children > .sub-menu > li:last-child {
  border-bottom: none;
}

.menu-item-has-children > .sub-menu > li > a {
  display: block;
  color: var(--color-white);
  font-size: 14px;
  line-height: 20px;
  text-transform: uppercase;
  padding: 5px 0;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.35s ease;
}

.menu-item-has-children > .sub-menu > li > a:hover,
.menu-item-has-children > .sub-menu > li > a:focus,
.menu-item-has-children > .sub-menu > li.current-menu-item > a {
  color: var(--color-black);
  text-decoration: underline;
}

.menu-item-has-children > .sub-menu > li.current-menu-item > a {
  font-weight: 700;
}

@media (min-width: 992px) and (max-width: 1199px) {
  .navbar-nav > li {
    margin-left: 26px;
  }

  .navbar-nav > li:first-child {
    margin-left: 0;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .navbar-nav > li {
    margin-left: 22px;
  }

  .navbar-nav > li:first-child {
    margin-left: 0;
  }
}

/* ==========================================================================
   6. Hero Image Carousel
   ========================================================================== */

.img-slider {
  padding: 0;
  width: 100%;
}

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #dce9f2;
}

.carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.6s ease-in-out;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: auto;
  line-height: 1;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  z-index: 15;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.carousel-indicators li {
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-indicators button {
  display: block;
  width: 10px;
  height: 10px;
  padding: 0;
  margin: 1px;
  border: 1px solid var(--color-white);
  border-radius: 50%;
  background-color: transparent;
  cursor: pointer;
  transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
}

.carousel-indicators li.active button,
.carousel-indicators button[aria-selected="true"] {
  width: 12px;
  height: 12px;
  margin: 0;
  background-color: var(--color-white);
}

/* ==========================================================================
   7. Blue Page Title Bar (.inner-title)
   ========================================================================== */

.inner-title {
  background: var(--color-brand);
  padding: 30px 0;
}

.inner-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.inner-title h1 {
  color: var(--color-white);
  text-transform: uppercase;
  font-size: 30px;
  font-weight: 500;
  margin: 0;
  line-height: 1.15;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ==========================================================================
   8. Main Page Content Section
   ========================================================================== */

.section-padding {
  padding: 30px 0;
}

.page-section {
  background-color: var(--color-white);
}

.site-main {
  width: 100%;
}

.entry-content p {
  font-size: 13px;
  color: var(--color-paragraph);
  line-height: 24px;
  margin: 0 0 10px;
}

.entry-content p:last-child {
  margin-bottom: 0;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 12px;
  padding-left: 40px;
}

.entry-content li {
  font-size: 13px;
  color: var(--color-paragraph);
  line-height: 24px;
}

.entry-content a {
  color: var(--color-brand);
}

.entry-content a:hover {
  text-decoration: underline;
}

.entry-content iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  margin-top: 10px;
}

/* Entrance reveal animation (reproduces wow fadeInLeft) */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translate3d(-40px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.js-enabled [data-reveal="fade-left"] {
  opacity: 0;
}

.js-enabled [data-reveal="fade-left"].is-visible {
  animation: fadeInLeft 0.75s ease-out both;
}

/* ==========================================================================
   9. Forms & Buttons Base (for future / inner pages)
   ========================================================================== */

button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.btn-theme {
  border: 0;
  background: var(--color-brand);
  font-family: "Open Sans", var(--font-sans);
  font-size: 13px;
  padding: 6px 15px;
  color: var(--color-white);
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.btn-theme:hover {
  background-color: var(--color-brand-hover);
  color: var(--color-white);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
  color: #666;
  border: 1px solid #ccc;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 13px;
  border-radius: 0;
  width: 100%;
  background: var(--color-white);
}

input:focus,
textarea:focus,
select:focus {
  color: #111;
  border-color: var(--color-brand);
  outline: none;
}

/* ==========================================================================
   10. Footer & Scroll-to-Top Button
   ========================================================================== */

.footer-section {
  background: #f0f0f0;
  padding-bottom: 0;
}

.footer-section .footer-bottom {
  background: var(--color-footer-bg);
  border-top: 1px solid var(--color-border-footer);
  padding: 40px 0;
}

.footer-bottom .copyright {
  color: var(--color-white);
  font-size: 13px;
  line-height: 24px;
  margin: 10px 0;
}

.footer-bottom .copyright a {
  color: var(--color-white);
  text-decoration: underline;
}

.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 990;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 2px;
  color: var(--color-white);
  text-align: center;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.scroll-top:hover,
.scroll-top:focus {
  background: rgba(0, 0, 0, 0.4);
  color: var(--color-white);
}

.scroll-top svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   10b. 404 Page
   ========================================================================== */

.page-404-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  padding: 40px 0 60px;
}

.page-404-code {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: clamp(96px, 18vw, 180px);
  font-weight: 700;
  line-height: 1;
  color: var(--color-brand);
  padding-right: 36px;
  border-right: 1px solid #dddddd;
}

.page-404-body {
  flex: 1 1 300px;
}

.page-404-body h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-heading);
  margin: 0 0 14px;
  line-height: 1.35;
}

.page-404-body p {
  margin-bottom: 20px;
}

.page-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-404-actions .btn-theme {
  display: inline-block;
  padding: 9px 20px;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
}

.page-404-actions .btn-outline {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--color-brand);
  border-radius: 3px;
  color: var(--color-brand);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.page-404-actions .btn-outline:hover {
  background-color: var(--color-brand);
  color: var(--color-white);
}

/* ==========================================================================
   11. Responsive Media Queries (Mobile & Tablet)
   ========================================================================== */

@media only screen and (max-width: 767px) {
  .page-404-wrap {
    flex-direction: column;
    text-align: center;
    padding: 20px 0 40px;
  }

  .page-404-code {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid #dddddd;
    padding-bottom: 20px;
    width: 100%;
  }

  .page-404-actions {
    justify-content: center;
  }
  .language-menu {
    margin-right: 20px;
  }

  .contacts-title,
  .contacts-block {
    text-align: center;
  }

  .contacts-block-links {
    justify-content: center;
  }

  .main-menu {
    display: block;
  }

  .navbar-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 51px;
  }

  .navbar-collapse {
    display: none;
    width: 100%;
    padding: 4px 0 12px;
  }

  .navbar-collapse.is-open {
    display: block;
  }

  .navbar-nav {
    display: block;
    margin: 10px 0;
  }

  .navbar-nav > li {
    margin: 5px 0 0;
    text-align: left;
  }

  .navbar-nav > li > a,
  .navbar-nav > li > a:hover,
  .navbar-nav > li > a:focus {
    color: var(--color-black);
    padding: 6px 0;
  }

  .navbar-nav > li.current-menu-item > a,
  .navbar-nav > li.current-menu-ancestor > a {
    color: var(--color-brand);
  }

  .menu-item-has-children > .sub-menu {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    background: none;
    box-shadow: none;
    margin-left: 20px;
  }

  .menu-item-has-children > .sub-menu > li {
    padding: 0;
    margin-bottom: 12px;
    border-bottom: none;
  }

  .menu-item-has-children > .sub-menu > li > a {
    color: #4d4d4d;
    padding: 4px 0;
  }

  .menu-item-has-children > .sub-menu > li > a:hover,
  .menu-item-has-children > .sub-menu > li > a:focus {
    color: var(--color-black);
  }

  .menu-item-has-children > .sub-menu > li.current-menu-item > a {
    color: var(--color-brand);
    font-weight: 700;
  }

  .carousel-indicators {
    bottom: 10px;
  }

  .inner-title h1 {
    font-size: 26px;
  }
}

@media only screen and (max-width: 480px) {
  .contacts-title {
    font-size: 26px;
    margin: 20px 0;
  }

  .inner-title h1 {
    font-size: 22px;
  }
}

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

  .carousel-track {
    transition: none;
  }

  .js-enabled [data-reveal="fade-left"] {
    opacity: 1;
    animation: none !important;
  }
}
