:root {
  --mint: #29c2a5;
  --mint-soft: #e8fbf6;
  --text: #0e1014;
  --bg: #fdfdfd;
  --hero-bg: url("hero.png"); /* світла тема */
}

 html.theme-dark {
  --hero-bg: url("herodark.png"); /* темна тема */
}
 
 

 



body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* HERO */
.hero {
  position: relative;
  height: 100svh;  /* краще для мобільних ніж vh */
  background-image: var(--hero-bg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 20px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}


.profile-pic {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.hero h1 {
    font-size: clamp(28px, 6vw, 48px);
    margin-bottom: 10px;
}

.hero .subtitle {
    font-size: clamp(16px, 3vw, 20px);
    margin-bottom: 16px;
    opacity: .9;
}

.hero .about-short {
    font-size: clamp(14px, 2.5vw, 18px);
    margin-bottom: 22px;
    opacity: .9;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    background: var(--mint);
    color: #00332a;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(41, 194, 165, .3);
    transition: transform .2s;
}

.btn:hover {
    transform: scale(1.05)
}

/* Блок з альтернативними кнопками */
.alt-btns {
    display: none;
    gap: 12px;
    margin-top: 14px;
    flex-direction: column;
    align-items: center;
}

@media(min-width:768px) {
    .alt-btns {
        flex-direction: row;
        justify-content: center;
    }
}

/* Ефект плавної появи кнопок */
.fade {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 1.8s ease, transform 1.8s ease;
}

.fade.show {
    opacity: 1;
    transform: translateY(0);
}



/* виділення номера телефону в секції про мене*/
.tel-number {
    display: inline-block;
    padding: 14px 28px;
    color: var(--mint);
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    transition: transform .2s;
}

.tel-number:hover {
    transform: scale(1.05)
}

/* About box card */
.about-box {
    max-width: 1000px;
    margin: 0 auto 32px;
    padding: 22px clamp(18px, 4vw, 28px);
    background: var(--mint-soft);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    /* ніжна м’ятна рамка */
    box-shadow:
        0 10px 24px rgba(17, 24, 39, .06),
        /* м’яка тінь */
        0 1px 0 rgba(41, 194, 165, .06) inset;
    /* легкий внутрішній штрих */
}

/* трохи підсилюємо типографіку всередині */
.about-box .lead {
    margin: 0;
    color: #425466;
    /* гарна читабельність */
}

/* легкий ховер (на desktop) */
@media (hover:hover) {
    .about-box:hover {
        box-shadow:
            0 14px 36px rgba(17, 24, 39, .09),
            0 1px 0 rgba(41, 194, 165, .08) inset;
        transform: translateY(-1px);
        transition: box-shadow .25s ease, transform .25s ease;
    }
}


/* Sections */
section {
    padding: 60px 20px;
    max-width: 1000px;
    margin: auto;
    text-align: center;
}

section h2 {
    font-size: clamp(22px, 5vw, 32px);
    margin-bottom: 10px;
}

section p.lead {
    color: #6b7280;
    margin-bottom: 30px;
}

/* Services */
.services {
    display: grid;
    gap: 20px;
}

@media(min-width:768px) {
    .services {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.092);
    transition: transform .2s;
}

.card:hover {
    transform: translateY(-5px)
}

.card h3 {
    margin-bottom: 8px;
    color: var(--mint)
}

/* Work card */
.work-card {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
    margin: 0 auto;
    max-width: 700px;
    /* робимо вужчим */
    text-align: center;
    
}

/* Work directions list */
.work-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: inline-block;
    text-align: left;
}

.work-list li {
    position: relative;
    padding-left: 32px;
    font-size: 16px;
    line-height: 1.8;
    color: #425466;
    margin-bottom: 8px;
}

/* квадратний маркер */
.work-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: var(--mint);
    box-shadow: 0 0 0 2px rgba(41, 194, 165, .18);
}




/* робимо плавну появу при reveal */
.reveal.visible .work-list li {
    transition: all .4s ease;
}

/* Terms section <!-- Умови співпраці --> */
/* Terms section */
#terms {
    padding: 60px 20px;
    max-width: 1000px;
    margin: auto;
    text-align: center;
}

#terms h2 {
    font-size: clamp(22px, 5vw, 32px);
    margin-bottom: 20px;
    color: var(--text);
}

/* Box like work-card */
.terms-box {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.171);
    margin: 0 auto;
    max-width: 700px;
    text-align: center;
}

/* List like work-list */
.terms-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: inline-block;
    /* центруємо */
    text-align: left;
    /* текст ліворуч, але блок по центру */
}

.terms-list li {
    position: relative;
    padding-left: 32px;
    font-size: 16px;
    line-height: 1.8;
    color: #425466;
    margin-bottom: 10px;
}

/* Маркер як у work-list */
.terms-list li::before {
    content: "✔";
    /* галочка */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--mint);
    font-weight: bold;
}


/* Hover effect like other cards */
@media (hover: hover) {
    .terms-box:hover {
        box-shadow:
            0 14px 36px rgba(17, 24, 39, 0.09),
            0 1px 0 rgba(41, 194, 165, 0.08) inset;
        transform: translateY(-2px);
        transition: box-shadow 0.25s ease, transform 0.25s ease;
    }
}

/* Preparation section */
#preparation {
    padding: 60px 20px;
    max-width: 1000px;
    margin: auto;
    text-align: center;
}

#preparation h2 {
    font-size: clamp(22px, 5vw, 32px);
    margin-bottom: 20px;
    color: var(--text);
}

/* Карта з акцентом */
.prep-box {
    background: var(--mint-soft);
    border-radius: 18px;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
    text-align: center;
    
}

.prep-intro {
    margin-bottom: 20px;
    color: #425466;
    font-size: 16px;
    line-height: 1.6;
}

/* Список по центру, текст зліва (як у work-list) */
.prep-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: inline-block;
    text-align: left;
}

.prep-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.6;
    color: #425466;
    max-width: 720px;
}

/* SVG-іконки у стилі сайту */
.prep-icon {
    width: 22px;
    height: 22px;
    color: var(--mint);
    flex-shrink: 0;
}

.prep-icon * {
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Невеликий hover-ефект для карти */
@media (hover:hover) {
    .prep-box:hover {
        box-shadow:
            0 14px 36px rgba(17, 24, 39, .09),
            0 1px 0 rgba(41, 194, 165, .08) inset;
        transform: translateY(-2px);
        transition: box-shadow .25s ease, transform .25s ease;
    }
}




/* Contacts */

.contacts {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: var(--mint-soft);
    border-radius: 999px;
    color: #065f54;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}

.contact-link:hover {
    background: var(--mint);
    color: white
}

/* Desktop: контакти в один ряд, без розтягування кнопок */
@media (min-width: 768px) {
    #contact .contacts {
        display: flex !important;
        /* перекриваємо можливий grid */
        flex-direction: row !important;
        /* з колонки у ряд */
        justify-content: center;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
        /* якщо не влазить — переносить акуратно */
        width: 100%;
    }

    #contact .contact-link {
        display: inline-flex;
        /* природна ширина */
        width: auto;
        /* не розтягуємо */
        flex: 0 0 auto;
        /* не тягнеться */
        /* прибери будь-який min-width, якщо десь додавали */
        min-width: unset;
        justify-content: center;
    }
}

.contact-link svg.icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    /* бере колір тексту кнопки */
}


/* Footer */
footer {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #6b7280;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all .8s ease
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0)
}
/* Мініатюри */
.cert-thumb {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform .2s;
}
.cert-thumb:hover {
  transform: scale(1.03);
}

/* Lightbox */
.lightbox {
  display: none;              /* ховаємо за замовчуванням */
  position: fixed;
  z-index: 9999;
  padding-top: 40px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.9);
}
.lightbox-content {
  display: block;
  max-width: 90%;
  max-height: 80vh;
  margin: auto;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}
.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: var(--mint);
 
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.close:hover {
  color: #fff;
}



/* ===== NAVBAR (додано) ===== */
.navbar{
  position: fixed; top:0; left:0; right:0; height:60px;
  display:flex; align-items:center; justify-content:space-between;
  padding: 0 16px; z-index:9998;
  color:#fff; background: rgba(0,0,0,0.35); backdrop-filter: saturate(120%) blur(6px);
}
.nav-brand{ color:#fff; text-decoration:none; font-weight:700; letter-spacing:.2px; }
.burger{ width:40px; height:40px; border:0; background:transparent; cursor:pointer; display:grid; place-content:center; gap:5px; }
.burger span{ display:block; width:22px; height:2px; background:#fff; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.burger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* Mobile dropdown */
.nav-links{
  list-style:none; margin:0; padding:12px 16px;
  position: fixed; top:60px; left:0; right:0;
  display:none; flex-direction:column; gap:12px;
  background: var(--bg); color: var(--text);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  border-bottom-left-radius: 12px; border-bottom-right-radius: 12px;
}
.nav-links.open{ display:flex; }
.nav-links a{ color:inherit; text-decoration:none; font-weight:600; padding:10px 12px; }
.nav-links .nav-cta{ align-self:center; }

/* Backdrop behind mobile menu */
.nav-backdrop{ position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:9997; }

/* Desktop layout */
@media (min-width: 992px){
  .burger{ display:none; }
  .nav-links{
    position: static; display:flex !important; flex-direction:row; gap:20px;
    background: transparent; box-shadow:none; padding:0;
  }
  .nav-links a{ color:#fff; }
}

/* Offset for fixed header on in-page anchors */
section{ scroll-margin-top: 80px; }

/* Корисне для аватарки (якщо центр "з’їжджає") */
.profile-pic{ display:block; margin:0 auto 20px; }


/* Темні змінні */
html.theme-dark{
  --bg:#0d1014;
  --text:#e6e8eb;
  --mint-soft:#12332c;
}

html.theme-dark #terms .terms-box,
html.theme-dark #terms h2,
html.theme-dark #terms .terms-list li,
html.theme-dark #preparation .prep-box,
html.theme-dark #preparation h2,
html.theme-dark #preparation .prep-intro,
html.theme-dark #preparation .prep-list li,
html.theme-dark #approaches h2,
html.theme-dark #approaches .work-card,
html.theme-dark #approaches .work-list li {
  color: #ffffff;
}


/* (опційно) підсилити контраст списків */
html.theme-dark #terms .terms-list li::before { color: var(--mint); }
html.theme-dark #preparation .prep-icon * { stroke: currentColor; } /* і так є, лиш для ясності */


/* Оверрайди для блоків з білим фоном */
html.theme-dark .card,
html.theme-dark .work-card,
html.theme-dark .terms-box{
  background:#14181f;
  box-shadow:0 8px 24px rgba(0,0,0,.35);
}
html.theme-dark section p.lead{ color:#e7ecf0; }
html.theme-dark .contact-link{ background:var(--mint-soft); color:#a7fff1; }
html.theme-dark .nav-links{ background:var(--bg); color:var(--text); }
html.theme-dark footer{ color:#fafdff; }

/* Кнопка перемикача (плаваюча) */
.theme-toggle.floating{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10050;               /* вище navbar/backdrop */
  padding: 10px 12px;
  border-radius: 999px;
  border: 2px solid rgba(231, 207, 27, 0.499);
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  display: none;
  pointer-events: auto;
  cursor: pointer;
}

/* ПОКАЗАТИ НА ДЕСКТОПІ (перебиває старі правила з !important) */
@media (min-width: 992px){
  html body .theme-toggle.floating{
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
  }
}
.theme-toggle .icon-sun{ display:none; }
html.theme-dark .theme-toggle .icon-sun{ display:inline; }
html.theme-dark .theme-toggle .icon-moon{ display:none; }


/* Група справа в navbar */
.nav-actions{ display:flex; align-items:center; gap:8px; }

/* Тумблер теми поруч із бургером (видно на мобільних) */
.theme-toggle.navbtn{
  width:40px; height:40px; padding:0;
  display:grid; place-items:center;
  border-radius:999px; border:1px solid rgba(255,255,255,.35);
  background:transparent; color:#fff; cursor:pointer;
}
.theme-toggle.navbtn .icon-sun{ display:none; }      /* світла іконка для darк */
html.theme-dark .theme-toggle.navbtn .icon-sun{ display:inline; }
html.theme-dark .theme-toggle.navbtn .icon-moon{ display:none; }

/* Ховаємо тумблер у navbar на десктопі */
@media (min-width:992px){
  .theme-toggle.navbtn{ display:none; }
}

/* (необов’язково) якщо раніше додавали плаваючу кнопку — сховай її */
.theme-toggle.floating{ display:none !important; }

/* Плавна зміна теми — анімуємо тільки під час перемикання */
body.theme-transition,
body.theme-transition .about-box,
body.theme-transition .work-card,
body.theme-transition .card,
body.theme-transition .contact-link,
body.theme-transition footer,
body.theme-transition .hero::after {
  transition:
    background-color .35s ease,
    color .35s ease,
    border-color .35s ease,
    box-shadow .35s ease,
    filter .35s ease;
}

/* повага до зменшеної анімації */
@media (prefers-reduced-motion: reduce){
  body.theme-transition,
  body.theme-transition *{
    transition: none !important;
  }
}
/* Загальна анімація reveal для всіх карток */
.about-box.reveal,
.work-card.reveal,
.reveal,
.card.reveal,
.swiper-slide.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.5s ease;
}

.about-box.reveal.visible,
.work-card.reveal.visible,
.card.reveal.visible,
.swiper-slide.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* утиліта плавної зміни кольорів/фону/рамок */
.smooth {
  transition:
    background-color 1s ease,
    color .42s ease,
    border-color .42s ease,
    box-shadow .42s ease,
    fill .42s ease,
    stroke .42s ease,
    filter .42s ease;
}

/* щоби ще м’якше під час перемикача */



