* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff;
  color: #333;
  line-height: 1.6;
  font-size: 16px;
  text-align: center;
}

a {
  text-decoration: none;
}

ul, ol {
  list-style-position: inside;
  margin: 1rem 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header */
.image-header {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.header-bg {
  display: block;
  width: 100%;
  height: auto;
}

.contact-top {
  position: absolute;
  top: 1rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-evenly;
  z-index: 2;
}

.contact-top a {
  color: #1a275a; /* tamsiai mėlyna */
  font-weight: 500;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
}

/* Tekstiniai blokai */
.text-section {
  padding: 3rem 1rem;
  background-color: #fff;
}

.text-section h2, .text-section h1 {
  margin-bottom: 1rem;
}

/* Blokai su fonu */
.bg-section {
  padding: 3rem 1rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

/* Forma */
/* .form-section form {
  max-width: 600px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
} */

.form-section {
  padding: 1rem 1rem 1rem 1rem; /* Panaikina apatinį tarpą */
  background-image: linear-gradient(90deg, #e3f0ff 0%, #ffffff 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 0; /* labai svarbu – pašalina baltą juostą */
}


.form-section h2 {
  margin-top: 1rem; /* Nuleidžia žemiau nuo ankstesnio fono */
}

input, textarea, button {
  padding: 0.75rem;
  font-size: 1rem;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
}

input[type="file"] {
  padding: 0.3rem;
}

button {
  background-color: #2d6cdf;
  color: white;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
   margin-top: 1rem;
}

button:hover {
  background-color: #1d4fb3;
}

/* Footer */
.footer {
  padding: 2rem 1rem;
}

.social-icons a {
  margin: 0 0.5rem;
  font-size: 1.5rem;
  color: #2d6cdf;
}

.block-link {
  color: inherit;          
  text-decoration: none;
  display: block;          /* kad nuoroda apimtų visą bloką */
}

.block-link * {
  color: inherit;          /* tekstas paveldi spalvą */
  transition: color 0.3s;  /* sklandus perėjimas */
}

.block-link:hover * {
  color: #1d4fb3;          /* pakeičia viso teksto spalvą užvedus ant iliustracijos */
}

h1 a {
  color: inherit;          /* paveldi H1 spalvą */
  text-decoration: none;   /* be pabraukimo */
  transition: color 0.3s;  /* sklandus spalvos perėjimas */
}

h1 a:hover {
  color: #1d4fb3;          /* tavo pasirinkta spalva užvedus */
}

.card-head {
  display: flex;
  justify-content: space-between; /* išdėsto vieną kairėje, kitą dešinėje */
  align-items: center;
  margin-bottom: 20px;
}

.card-head h1 {
  margin: 0;
  font-size: clamp(26px,3vw,34px);
}

.card-head h1 a {
  color: inherit;
  text-decoration: none;
  transition: color .25s;
}

.card-head h1 a:hover {
  color: var(--primary);
}

.brand-mark {
  font-weight: 800;              /* pastorintas */
  font-size: 22px;
  color: var(--text);
  text-decoration: none;
  transition: color .2s;
}

.brand-mark:hover {
  color: var(--primary);
}