@font-face {
  font-family: 'Muli';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../assets/fonts/Muli/MuliLight.woff2) format('woff2');
}

@font-face {
  font-family: 'Muli';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/Muli/MuliRegular.woff2) format('woff2');
}

@font-face {
  font-family: 'Muli';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../assets/fonts/Muli/MuliBold.woff2) format('woff2');
}

:root {
  --bg-color: #FFFFFF;
  --bg-gradient: radial-gradient(circle at top left, #e5eaff, transparent 44%), radial-gradient(circle at bottom right, #f4f6ff, transparent 42%), radial-gradient(circle, #F9FAFB, #f7f8fa);
  --text-color: #111827;
  --accent-color: #4F46E5;
  --hover-color: #818CF8;
  --switcher-handle: #fff;
  --switcher-text: #333;

  --font-family-head: 'Muli', sans-serif;
  --font-family: 'Muli', sans-serif;

  --text-base: 1rem;
  
  --text-xs:   0.75rem;   /* 12px */
  --text-sm:   0.875rem;  /* 14px */
  --text-md:   1rem;      /* 16px */
  --text-lg:   1.125rem;  /* 18px */
  --text-xl:   1.25rem;   /* 20px */
  
  --h6: 1rem;        /* 16px */
  --h5: 1.25rem;     /* 20px */
  --h4: 1.563rem;    /* 25px */
  --h3: 1.953rem;    /* 31px */
  --h2: 2.441rem;    /* 39px */
  --h1: 3.052rem;    /* 49px */
  
  --line-height: 1.6;
  --line-height-headings: 1.3;
  
  --typography-spacing: 1.5em;
  
  --gap: 40px;
}

[data-theme="dark"] {
  --bg-color: #090909;
  --bg-gradient: radial-gradient(circle at top left, #4F46E5, #00000080 39%), radial-gradient(circle at bottom right, #4f46e5, #0000008f 40%), radial-gradient(circle, #1e1b4b, #000);
  --text-color:rgba(255, 255, 255, 0.9);
  --accent-color: #6C63FF;
  --hover-color: #4F46E5;
  --switcher-text: #f0f0f0;
  --switcher-handle: #1E1B4B;
  font-weight: 400;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family);
}

body {
  font-size: var(--text-base);
  line-height: var(--line-height);
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-color);
  min-height: 100vh;
  transition: 
    background-color 0.6s ease,
    color 0.4s ease;
}

h1 { font-size: var(--h1); line-height: var(--line-height-headings); }
h2 { font-size: var(--h2); line-height: var(--line-height-headings); }
h3 { font-size: var(--h3); line-height: var(--line-height-headings); }
h4 { font-size: var(--h4); line-height: var(--line-height-headings); }
h5 { font-size: var(--h5); line-height: var(--line-height-headings); }
h6 { font-size: var(--h6); line-height: var(--line-height-headings); }

p, li {
  font-size: var(--text-md);
  margin-bottom: var(--typography-spacing);
}

a {
  text-decoration: none;
}

address {
  margin: 8px 0;
  font-style: normal;
}

.small { font-size: var(--text-sm); }
.lead  { font-size: var(--text-lg); }

h1 {
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

a, button {
  color: var(--accent-color);
}

a:hover, button:hover {
  color: var(--hover-color);
}

main {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.center {
  text-align: center;
}

/*-- CTA --*/
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.cta-btn::after {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: pulse 2s infinite;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.cta-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}

/*--Header--*/
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0 2rem;
}
/*--Logo--*/
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 1.2rem;
  color: inherit;
  text-decoration: none;
}

.svg-seal {
  display: none;
}

/*--Nav--*/
.nav__list {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav__list li {
    margin: 0;
}

.nav__list a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
  display: flex;
}

.nav__list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #4F46E5;
  transition: width 0.3s ease;
}

.nav__list a:hover::after {
  width: 100%;
}

/*--Nav mobile--*/
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/*--Theme Switcher--*/
.theme-switcher {
  position: relative;
  width: 140px;
  height: 36px;
  border-radius: 50px;
  display: flex;
  padding: 4px;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.1);
}

.theme-switcher input {
  opacity: 0;
  position: absolute;
}

.slider {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  pointer-events: none;
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 0;
  width: 33.33%;
  height: 100%;
  background: var(--switcher-handle);
  border-radius: 50px;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#theme-light:checked ~ .slider .slider-handle {
  transform: translateX(0);
}

#theme-system:checked ~ .slider .slider-handle {
  transform: translateX(100%);
}

#theme-dark:checked ~ .slider .slider-handle {
  transform: translateX(200%);
}

.labels label:active svg {
  transform: scale(0.9);
}

.labels {
  display: flex;
  width: 100%;
  z-index: 2;
}

.labels label {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--switcher-text);
  transition: color 0.3s;
}

.labels label svg {
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 0.3s;
}

.labels label:hover svg {
  transform: scale(1.1);
}

/*-- Home Cover --*/
.cover {
  height: calc(100vh - 300px);
  align-items: center;
  max-width: 800px;
  margin: auto;
  text-align: center;
}  

.cover h1 {
  font-size: max(48px,min(5vw,76px));
  font-weight: 600;
}

.cover h3 {
  font-size: max(15px,min(2vw,20px));
}

.cover .cta-btn {
  margin: 2em;
}

/*--Sections--*/
.section {
  padding: 80px 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s, transform 0.6s;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section__inner {
  display: flex;
  align-items: center;
  gap: var(--gap);
}

.section__inner.section-align-top {
  align-items: self-start;
}

.section__inner.section-align-top h4 {
  margin-bottom: 1rem;
}

.section__content {
  flex: 1;
  min-width: 300px;
}

.section__title {
  font-size: 2rem;
  margin-bottom: 20px;
}

.section__text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.section__btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--accent-color);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}

.section__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.section__image {
  flex: 1;
  min-width: 300px;
}

.section__image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s;
}

.section__image:hover img {
  transform: scale(1.03);
}

.section--reversed .section__inner {
  flex-direction: row-reverse;
}

.image-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 auto;
  max-width: 1400px;
  padding: 12px;
}

.grid-item {
  flex: 1 1 calc(14.285% - 12px);
  min-width: 120px;
  max-width: 200px;
  aspect-ratio: 1/1;
  padding: 0.5rem;
  filter: grayscale(1);
  transition: transform 0.3s, filter 0.3s;
}

.grid-item:hover {
  transform: translateY(-5px);
  filter: grayscale(0);
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s;
}

.grid-item:hover img {
  transform: scale(1.05);
}

.image-grid::-webkit-scrollbar {
  height: 6px;
}

.image-grid::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}

.minimal-quote {
  display: flex;
  align-items: center;
  gap: 25px;
  max-width: 800px;
  margin: 50px auto;
  padding: 0 20px;
}

.quote-avatar {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #f0f0f0;
}

.quote-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

blockquote {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #333;
  margin: 0 0 10px 0;
  font-style: italic;
  position: relative;
}

[data-theme="dark"] blockquote {
  color: #f0f0f0;
}

.quote-author {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
  color: #4F46E5;
  text-decoration: none;
}

.author-title {
  font-size: 0.85rem;
  color: #666;
}

[data-theme="dark"] .author-title {
  color: #aaa;
}

.quote-avatar {
  transition: transform 0.5s ease;
}

.minimal-quote:hover .quote-avatar {
  transform: rotate(5deg);
}

.basement h3 {
  margin: 2rem;
}

.thumbnail-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
}

.thumbnail-link {
  display: flex;
  gap: 20px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

[data-theme="dark"] .thumbnail-link {
  border-color: rgba(255,255,255,0.08);
}

.thumbnail-link:hover {
  transform: translateX(5px);
}

[data-theme="dark"] .thumbnail-link:hover {
  background: rgba(79, 70, 229, 0.1);
}

.thumbnail-img {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  padding: 0.2rem;
}

.thumbnail-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.thumbnail-link:hover .thumbnail-img img {
  transform: scale(1.05);
}

.thumbnail-content {
  flex: 1;
}

.thumbnail-title {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  color: #333;
}

[data-theme="dark"] .thumbnail-title {
  color: #f0f0f0;
}

.thumbnail-desc {
  margin: 0 0 8px 0;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

[data-theme="dark"] .thumbnail-desc {
  color: #aaa;
}

.thumbnail-meta {
  font-size: 0.8rem;
  color: #999;
  display: block;
}

.thumbnail-link {
  position: relative;
}

.thumbnail-link::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: #4F46E5;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.thumbnail-link:hover::after {
  transform: scaleY(1);
}

.thumbnail-link:active {
  transform: translateX(5px) scale(0.98);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  color: #666;
  transition: color 0.3s, transform 0.3s;
}

[data-theme="dark"] .social-links a {
  color: #aaa;
}

.social-links a:hover {
  color: #4F46E5;
  transform: translateY(-2px);
}

footer p {
  margin: 0;
}

footer a {
  text-decoration: none;
}

/*--Form--*/
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s;
  background: transparent;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
  border-color: #4B5563;
  color: white;
}

.form-group label {
  position: absolute;
  left: 16px;
  top: 12px;
  color: #6B7280;
  transition: all 0.3s;
  pointer-events: none;
  background: transparent;
  padding: 0 4px;
}

[data-theme="dark"] .form-group label {
  color: #A5B4FC;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -10px;
  font-size: 0.8rem;
  background: var(--accent-color);
  border-radius: 4px;
  color: #fff;
}

.submit-btn {
  text-align: center;
  padding: 12px 24px;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.submit-btn:hover {
  background: #4338CA;
  transform: translateY(-2px);
}

/*--Cookie banner--*/
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 600px;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.5s ease;
}

[data-theme="dark"] .cookie-banner {
  background: #1E1B4B;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
}

.cookie-content p {
  margin: 0 0 15px 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #333;
}

[data-theme="dark"] .cookie-content p {
  color: #f0f0f0;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
}

.cookie-btn.accept {
  background: #4F46E5;
  color: white;
  border: none;
}

.cookie-btn.accept:hover {
  background: #4338CA;
  transform: translateY(-2px);
}

.cookie-btn.decline {
  background: transparent;
  color: #4F46E5;
  border: 1px solid #E5E7EB;
}

[data-theme="dark"] .cookie-btn.decline {
  border-color: #4B5563;
  color: #A5B4FC;
}

.cookie-btn.decline:hover {
  background: rgba(0, 0, 0, 0.05);
}

ul.timeline-list {
  counter-reset: index;
  padding: 0;
  display: flex;
}  

ul.timeline-list li {
  counter-increment: index;
  align-items: center;
  margin-right: 1rem;
  box-sizing: border-box;
  list-style: none;
  padding: 1rem;
  flex: 1;
  background: linear-gradient(45deg, var(--bg-color), transparent);
  border-radius: 1rem;
  font-size: var(--text-lg);
}

ul.timeline-list li::before {
  content: counter(index);
  font-size: 5rem;
  font-weight: bold;
  padding-right: 2rem;
  font-variant-numeric: tabular-nums;
  align-self: flex-start;
  color: #3f3e54;
  display: flex;
  border-bottom: 1px solid #3f3e54;
  margin-bottom: 1rem;
}

ul.section-list {
  list-style: none;
  margin-top: 3rem;
}  

ul.section-list li {
  position: relative;
  padding-left: 42px;
} 

ul.section-list li::before {
  content: " ";
  background: var(--accent-color);
  height: 16px;
  width: 16px;
  border-radius: 4px;
  display: block;
  position: absolute;
  left: 0;
  top: 4px;
}

/*--Adapt--*/
@media (max-width: 1280px) {
  .container {
    max-width: 1024px;
  }
}

@media (max-width: 1200px) {
  :root {
    --h1: 2.441rem; /* 39px */
    --h2: 1.953rem; /* 31px */
    --h3: 1.563rem; /* 25px */
  }
  
  .grid-item {
    flex: 1 1 calc(16.666% - 12px); 
  }
}

@media (max-width: 1024px) {
  .container {
    max-width: 768px;
  }
}

@media (max-width: 992px) {
  .svg-logo {
    display: none;
  }
  
  .nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-color);
    transition: left 0.3s ease;
    padding: 20px;
  }

  .hamburger,
  .svg-seal {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    gap: 20px;
  }

  .nav.active {
    left: 0;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .grid-item {
    flex: 1 1 calc(20% - 12px); 
  }
}

@media (max-width: 768px) {
  :root {
    --text-base: 0.9375rem; /* 15px */
    
    --h1: 2rem;     /* 32px */
    --h2: 1.625rem; /* 26px */
    --h3: 1.375rem; /* 22px */
    
    --line-height: 1.7;
  }

  .container {
    max-width: 480px;
  }  
  
  .section__inner {
    flex-direction: column !important;
    gap: 30px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section__content, 
  .section__image {
    min-width: 100%;
  }

  .grid-item {
    flex: 1 1 calc(25% - 12px);
  }

  ul.timeline-list {
    flex-direction: column;
  }
  
  ul.timeline-list li {
    display: flex;
  }  

  ul.timeline-list li::before {
    font-size: 3rem;
    border-bottom: none;
    border-right: 1px solid #3f3e54;
    margin-bottom: 0;
    margin-right: 1rem;
  }

  .minimal-quote {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .social-links {
    justify-content: center;
  }

  .thumbnail-link {
    flex-direction: column;
    gap: 12px;
    padding: 25px 20px;
  }
  
  .thumbnail-img {
    width: 100%;
    height: 180px;
  }
}

@media (max-width: 600px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
  
  .cookie-btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .grid-item {
    flex: 1 1 calc(33.333% - 12px); 
  }
}

@media (max-width: 480px) {  
  :root {
    --h1: 1.75rem;  /* 28px */
    --h2: 1.5rem;   /* 24px */
    
    --typography-spacing: 1.2em;
  }
  .container {
    padding: 0 16px;
  }

  .section__title {
    font-size: 1.5rem;
  }
  
  .section__text {
    font-size: 1rem;
  }
  
  .section__btn {
    padding: 10px 20px;
  }

  .theme-switcher {
    width: 120px;
    height: 32px;
  }
  
  .labels label svg {
    width: 14px;
    height: 14px;
  }
    
  .cta-btn {
    padding: 12px 20px;
    font-size: 1rem;
  }
  
  .cta-btn::after {
    animation: pulse 1.5s infinite;
  }

  blockquote {
    font-size: 1.1rem;
  }
  
  .quote-avatar {
    width: 70px;
    height: 70px;
  }
  
  .thumbnail-img {
    height: 150px;
  }
}

@media (max-width: 400px) {
  .grid-item {
    flex: 1 1 calc(50% - 12px); 
    min-width: 100px;
  }
}

@media screen and (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

/*--Animations--*/
@keyframes pulse {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}