/*
Theme Name: avtovikup
Author: Me

*/

@font-face {
  font-family: "Roboto";
  src: url("fonts/Roboto-Regular.woff2") format("woff2");
  font-weight: 400;
}
@font-face {
  font-family: "Roboto";
  src: url("fonts/Roboto-Bold.woff2") format("woff2");
  font-weight: 700;
}
@font-face {
  font-family: "Roboto";
  src: url("fonts/Roboto-Black.woff2") format("woff2");
  font-weight: 900;
}
@font-face {
  font-family: "Roboto";
  src: url("fonts/Roboto-Light.woff2") format("woff2");
  font-weight: 300;
}

:root {
  --clr-accent: 218 83% 54%;
  --clr-secondary: 37 100% 50%;
  --clr-light: 36 11% 92%;
  --clr-white: 180 0% 100%;
  --clr-dark: 0 0% 16%;
  --clr-black: 0 0% 0%;

  --ff-main: "Roboto", serif;
}

/* Reset               */

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

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body {
  margin: 0;
  padding: 0;
}
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

h1,
h2,
h3,
h4,
button,
input,
label {
  line-height: 1.1;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

ul,
ol {
  margin: 0.25rem;
}
img,
picture {
  max-width: 100%;
  display: block;
}

input,
button,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Reset               */
/* remove animations for people who've turned them off */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff-main);
  color: hsl(var(--clr-dark));
  background-color: hsl(var(--clr-white));
  line-height: 1.5;
  font-size: 1rem;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  flex-direction: column;

  scroll-margin-top: 4rem;
}

main {
  flex-grow: 1;
}
h2 {
  margin: 1rem 0;
}
h3 {
  font-size: 1.5rem;
  margin: 1rem 0;
}
p {
  margin: 0.5rem 0;
}
a {
  color: hsl(var(--clr-accent));
}
a:hover {
  color: hsl(var(--clr-dark));
}
.footer {
  background-color: hsl(var(--clr-dark));
  padding: 1rem 0.5rem;
}
.footer a {
  color: hsl(var(--clr-white) / 0.9);
  text-decoration: none;
}
.footer-copyright {
  /* display: flex;
  justify-content: space-between; */
  color: hsl(var(--clr-white) / 0.9);
  font-size: 0.875rem;

  max-width: 1260px;
  margin: 0 auto;
}
.footer-copyright a {
  color: hsl(var(--clr-secondary) / 1);
}
.footer-copyright a:hover {
  text-decoration: underline;
}
.header-logo-img figure {
  margin: 5px 0 0 0;
}
.header-logo-img img {
  height: 50px;
  width: auto;
}
.primary-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  width: 100%;

  background-color: hsl(var(--clr-accent) / 0.7);
  background-color: rgba(29, 57, 107, 1);
  margin: 0 auto;
  border-bottom: 1px solid hsl(var(--clr-white) / 0.2);

  transition: all 0.3s ease-in-out;
}
.page-template-menu-overlay .primary-header {
  /* position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10; */
  background-color: transparent;
  margin: 0 auto;
  border-bottom: 1px solid hsl(var(--clr-white) / 0.2);
}
.primary-header.scrolled {
  background-color: hsl(var(--clr-accent) / 0.7);
  background-color: rgba(29, 57, 107, 0.9);
  /* backdrop-filter: blur(10px); */
}
.logo-and-phones {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
main.container {
  margin-top: 70px;
}
.page-template-menu-overlay main.container {
  margin-top: 0px;
}
table p {
  margin: 0;
  padding: 0;
}
h1 {
  color: hsl(var(--clr-black));
}
.hero-title {
  font-weight: 900;
}
.hero p {
  font-size: 1.125rem;
  color: #fff;
  font-weight: 300;
}
.hero-subtitle,
p.hero-subtitle {
  border-radius: 3px;
  padding: 0.5rem 1rem;
  color: white;
  text-align: center;
  max-width: fit-content;
  font-size: 0.875rem;

  background-color: hsl(var(--clr-secondary) / 1);
}

.services .kt-inside-inner-col {
  position: relative;
  padding: 1rem 2rem 1.75rem 2rem;
  /* border-radius: 8px; */
}
.services {
  color: #fff;
}
.services .kt-inside-inner-col::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  width: calc(100% - 40px);
  height: calc(100% - 40px);
  background-color: hsl(var(--clr-black) / 0.6);
  pointer-events: none;
  z-index: 1;
  transition:
    height 0.3s ease,
    background 0.3s ease;
}
.services h3 {
  font-size: 1.5rem;
  padding: 0.5rem 0.5rem 0.125rem 0.75rem;
  position: relative;
  z-index: 3;
  margin-bottom: 0.5rem;
  text-align: center;
}

.services a {
  position: relative;
  overflow: hidden;
  z-index: 2;
  text-decoration: none;
  display: block;
  max-width: fit-content;

  background-image: url(images/arrow-right-fill-white.svg);
  background-repeat: no-repeat;
  background-position: center right;
  background-size: 20px;
  padding: 0.5rem 1.75rem 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: hsl(var(--clr-white));

  transition: transform 0.3s ease-in-out;
}

.services a:hover {
  transform: translateY(-5px);
}
.btn1 a {
  position: relative;
  background-color: hsl(var(--clr-dark));
  color: hsl(var(--clr-white));
  display: block;
  max-width: fit-content;
  padding: 0.5rem 1.5rem;
  text-decoration: none;
}
.btn1 a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  right: -5px;
  height: 100%;
  width: 100%;

  border: 1px solid hsl(var(--clr-dark) / 0.7);
  transition: all 0.3s ease-in-out;
}
.btn1 a:hover {
  background-color: hsl(var(--clr-dark) / 1);
}
.btn1 a:hover::after {
  bottom: 0;
  right: 0;
}
.btn1.btn-phone a {
  padding: 0.5rem 1.5rem 0.5rem 2.5rem;
  background-image: url(images/phone-white.svg);
  background-position: center left 10px;
  background-repeat: no-repeat;
  background-size: 20px;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
}
.btn1.btn-email a {
  padding: 0.5rem 1.5rem 0.5rem 2.5rem;
  background-image: url(images/email-white.svg);
  background-position: center left 10px;
  background-repeat: no-repeat;
  background-size: 20px;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
}
.postheader {
  text-align: center;
  margin: 1rem 0 0.5rem;
}
.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
}
.perevaga h3,
.kt-infobox-textcontent h3.kt-blocks-info-box-title {
  font-size: 1.25rem;
  font-weight: 900;
}

.max-width-1280 {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}
.single-post-content {
  width: 100%;
  max-width: 1024px;
  margin: 80px auto 1rem;
  margin-top: 80px;
  padding: 0 1rem 1.25rem;
}

/* .single-post .primary-header,
.archive .primary-header,
.category .primary-header {
  background-color: hsl(var(--clr-accent) / 0.7);
  background-color: rgba(29, 57, 107, 0.8);
  backdrop-filter: blur(10px);
} */
.single-post .max-width-1280,
.archive .max-width-1280,
.category .max-width-1280 {
  margin-top: 80px;
  padding: 0 1rem 1.25rem;
}

.single-post-content figure {
  margin: 1rem 0;
}
/* breadcrumbs */
.breadcrumbs {
  padding: 10px 0;
  font-size: 0.75rem;
  color: #777;
}
.breadcrumbs a {
  color: #0073aa;
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.breadcrumbs span {
  color: #333;
}
/* breadcrumbs */

/* category */
/* Базові стилі для контейнера */
.category-cards {
  display: grid;
  gap: 20px; /* Відстань між картками */
  width: 100%;
  margin: 0 auto;
}

/* 1 колонка (за замовчуванням для мобільних) */
.category-cards {
  margin-top: 1rem;
  grid-template-columns: repeat(1, 1fr);
}

/* 3 колонки (Планшети - зазвичай від 768px до 1024px) */
@media (min-width: 768px) {
  .category-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 4 колонки (Великі екрани - від 1025px) */
@media (min-width: 1025px) {
  .category-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}
.category-cards h3 {
  margin: 0 0 0.25rem;
  font-weight: 700;
}
.category-cards h3 a {
  color: hsl(var(--clr-accent));
  text-decoration: none;
}

.category-cards .card {
  background-color: hsl(var(--clr-accent) / 0.1);
  border-radius: 5px;
  overflow: hidden;
}
.card-text-content {
  padding: 0.75rem;
}
.category-cards img {
  width: 100%;
  height: 200px;
  display: block;
  object-fit: cover;
}
.category-cards .card p {
  margin: 0.5rem 0;
  line-height: 1.2;
}
.card-post-link a {
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
}
/* category */

.footer ul li,
.footer p {
  margin: 0.125rem 0;
}
.related-posts ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.related-posts ul li {
  display: flex;
  align-items: center;
}
.related-posts ul li span {
  display: flex;
  align-items: center;
  height: 16px;
  width: 26px;
}
.subheading {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
  font-weight: 700;
  color: hsl(var(--clr-black) / 0.5);
}
ul.kt-testimonial-grid-wrap {
  margin: 0;
  padding: 0;
}
@media (max-width: 768px) {
  .header-logo-img img {
    height: 40px;
    width: auto;
  }

  h1 {
    font-size: 1.5rem;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
}
