/*
  HLAVNÉ FARBY A VEĽKOSTI
  Ak chcete rýchlo zmeniť vzhľad, upravte premenné nižšie.
*/
:root {
  --bg: #101010;
  --panel: #242424;
  --panel-2: #303030;
  --text: #f6f6f6;
  --muted: #a7a7a7;
  --line: #3c3c3c;
  --accent: #2e72e8;
  --accent-dark: #1450b8;
  --success: #33cc44;
  --shadow: 0 24px 80px rgba(0, 0, 0, .35);
  --radius-lg: 28px;
  --radius-md: 18px;
  --container: 1160px;
}

body.light-theme {
  --bg: #f5f5f7;
  --panel: #ffffff;
  --panel-2: #f1f1f3;
  --text: #151515;
  --muted: #686868;
  --line: #dedede;
  --shadow: 0 24px 80px rgba(0, 0, 0, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::selection {
  background: var(--accent);
  color: white;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  position: relative;
}

.section {
  width: min(var(--container), calc(100% - 96px));
  margin: 0 auto;
  padding: 86px 0 40px;
  position: relative;
}

.full-height {
  min-height: 100vh;
  display: grid;
  align-items: center;
}

.page-main {
  min-height: calc(100vh - 73px);
}

.page-main .section:not(.hero-section) {
  min-height: calc(100vh - 73px);
}

.accent {
  color: var(--accent);
}

.divider {
  height: 1px;
  width: 100%;
  background: var(--line);
  margin: 0 0 38px;
}

.section-header {
  min-height: 150px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.big-word {
  position: absolute;
  font-size: clamp(76px, 15vw, 170px);
  line-height: .8;
  font-weight: 900;
  letter-spacing: -.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .075);
  pointer-events: none;
  user-select: none;
}

body.light-theme .big-word {
  color: rgba(0, 0, 0, .07);
}

.section-header h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1;
  text-transform: uppercase;
  font-weight: 900;
}

.section-lead {
  max-width: 920px;
  margin: 0 auto 54px;
  text-align: center;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
}

.round-button {
  position: fixed;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--accent);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
}

.round-button:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.menu-button {
  top: 28px;
  left: 28px;
  gap: 3px;
  display: none;
}

.menu-button span {
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}

.theme-button {
  top: 28px;
  right: 28px;
  border-radius: 28px;
  height: 82px;
}

.theme-button span {
  font-size: 27px;
  color: var(--muted);
}

.quick-nav-button {
  top: 128px;
  right: 36px;
  width: 58px;
  height: 58px;
}

.grid-icon {
  font-size: 30px;
  line-height: 1;
}

.side-menu {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  width: min(420px, calc(100% - 34px));
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius-lg) 0;
  box-shadow: var(--shadow);
  padding: 92px 28px 36px;
  transform: translateX(-105%);
  transition: transform .28s ease;
}

.side-menu.open {
  transform: translateX(0);
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.menu-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.close-menu {
  position: absolute;
  top: 20px;
  left: 28px;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 54px;
  line-height: 1;
  cursor: pointer;
}

.main-nav {
  display: grid;
  gap: 14px;
}

.nav-link {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 0 22px;
  border-radius: 14px;
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: var(--panel-2);
  color: var(--accent);
  transform: translateX(4px);
}

.nav-icon {
  color: var(--accent);
  font-size: 24px;
  text-align: center;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
  gap: 56px;
  align-items: center;
}

.hero-text h1 {
  margin: 0 0 20px;
  font-size: clamp(58px, 9vw, 90px);
  line-height: .95;
  color: var(--accent);
  letter-spacing: -.06em;
  font-weight: 900;
}

.hero-text h3 {
  margin: 0 0 28px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  font-weight: 800;
}

.hero-intro {
  max-width: 520px;
  min-height: 72px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.small-dot {
  width: 12px;
  height: 12px;
  margin: 0 0 36px;
  border-radius: 50%;
  background: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 174px;
  min-height: 58px;
  padding: 14px 28px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, color .2s ease;
}

.button:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
}

.button.small {
  min-height: 48px;
  min-width: 140px;
  font-size: 16px;
}

.social-block {
  margin-top: clamp(80px, 12vh, 170px);
}

.social-block > span {
  display: block;
  margin-bottom: 18px;
  font-size: 19px;
}

.socials {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.social {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--accent);
  font-weight: 800;
  transition: transform .2s ease, border-color .2s ease;
}

.social:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.hero-image-wrap {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.circle-line {
  position: absolute;
  width: min(92vw, 520px);
  aspect-ratio: 1;
  border: 4px solid var(--accent);
  border-left-color: transparent;
  border-top-color: transparent;
  border-radius: 50%;
  transform: rotate(-18deg);
}

.hero-image {
  position: relative;
  z-index: 1;
  width: min(92vw, 470px);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .35));
}

.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.2fr;
  gap: 70px;
  align-items: start;
}

.about-copy h3,
.blue-heading {
  color: var(--accent);
  font-size: 28px;
  margin: 0 0 28px;
}

.about-copy p {
  color: var(--text);
  font-size: 21px;
  line-height: 1.7;
  margin: 0 0 38px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}

.info-row {
  display: flex;
  gap: 6px;
  align-items: baseline;
  min-height: 54px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
}

.info-row strong {
  color: var(--text);
}

.info-row span {
  color: var(--muted);
}

.info-row .available {
  color: var(--success);
  font-weight: 800;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 56px;
}

.stat-card {
  padding: 30px;
  border-right: 1px solid var(--line);
}

.stat-card:last-child {
  border-right: 0;
}

.stat-card strong {
  display: block;
  color: var(--accent);
  font-size: 44px;
  line-height: 1;
}

.stat-card span {
  color: var(--text);
  font-size: 18px;
}

.cards-grid {
  display: grid;
  gap: 28px;
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.book-card,
.pricing-card,
.testimonial-card,
.timeline-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 transparent;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.book-card:hover,
.project-card:hover,
.pricing-card:hover,
.testimonial-card:hover,
.timeline-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.card-click {
  position: absolute;
  inset: 0;
  z-index: 5;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.book-cover {
  height: 360px;
  background: linear-gradient(135deg, var(--accent), #313131);
  display: grid;
  place-items: center;
  overflow: hidden;
}

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

.book-body {
  padding: 28px;
}

.tag {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
}

.book-body h3,
.pricing-card h3,
.timeline-content h3,
.project-overlay h3 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.15;
}

.book-body p,
.pricing-card p,
.timeline-content p,
.testimonial-card p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 18px;
}

.timeline {
  display: grid;
  gap: 20px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 260px 1fr;
  padding: 30px;
  overflow: visible;
}

.timeline-date {
  color: var(--accent);
  font-weight: 800;
  font-size: 20px;
}

.timeline-content span {
  color: var(--muted);
}

.timeline-content a {
  color: var(--accent);
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.pricing-card {
  padding: 38px;
  min-height: 540px;
}

.pricing-card.recommended {
  border-color: var(--accent);
}

.ribbon {
  position: absolute;
  right: -54px;
  top: 34px;
  width: 220px;
  padding: 12px;
  background: var(--accent);
  color: white;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  transform: rotate(38deg);
}

.price {
  margin: 22px 0;
  color: var(--accent);
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.pricing-card ul {
  margin: 24px 0 54px;
  padding-left: 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.pricing-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: auto;
  color: var(--muted);
  font-weight: 700;
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.filter-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
  transition: color .2s ease;
}

.filter-button.active,
.filter-button:hover {
  color: var(--accent);
}

.project-card {
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--panel);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.project-card img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  filter: saturate(.85);
}

.project-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 34px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .72));
}

.project-overlay span {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
}

.logo-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 34px;
  margin: 50px 0 78px;
}

.logo-row img {
  max-height: 82px;
  margin: 0 auto;
  opacity: .66;
  filter: grayscale(1);
  transition: opacity .2s ease, filter .2s ease;
}

.logo-row img:hover {
  opacity: 1;
  filter: grayscale(0);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.testimonial-card {
  padding: 30px;
}

.testimonial-head {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.testimonial-head img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-head h4 {
  margin: 0;
  font-size: 22px;
}

.testimonial-head span {
  color: var(--muted);
}

.stars {
  color: #ffd11a;
  font-size: 28px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 54px;
}

.contact-form {
  display: grid;
  gap: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

label {
  display: grid;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  padding: 17px 18px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(46, 114, 232, .14);
}

.contact-details {
  display: grid;
  gap: 26px;
}

.contact-item {
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}

.contact-item h3 {
  margin: 0 0 18px;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 24px;
}

.contact-item p {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.7;
}

.footer {
  display: flex;
  justify-content: center;
  gap: 5px;
  width: 100%;
  padding: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer span span {
  color: var(--accent);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  padding: 30px;
}

.modal.open {
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  width: min(1120px, 100%);
  max-height: min(780px, calc(100vh - 60px));
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.modal-close {
  position: sticky;
  top: 18px;
  float: right;
  margin: 16px;
  z-index: 2;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  font-size: 36px;
  cursor: pointer;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
}

.modal-image {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  background: var(--accent);
}

.modal-text {
  padding: 62px 46px;
}

.modal-text h2 {
  margin: 0 0 22px;
  font-size: 44px;
  line-height: 1.1;
}

.modal-text p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.8;
}

.muted {
  color: var(--muted) !important;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
  transition-delay: var(--delay, 0ms);
}

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

.delay-1 {
  --delay: 120ms;
}

@media (max-width: 980px) {
  .section {
    width: min(100% - 38px, var(--container));
    padding-top: 74px;
  }

  .round-button {
    width: 58px;
    height: 58px;
  }

  .theme-button {
    height: 72px;
    border-radius: 24px;
  }

  .quick-nav-button {
    top: 112px;
    right: 28px;
    width: 50px;
    height: 50px;
  }

  .hero-content,
  .about-grid,
  .contact-grid,
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding-top: 120px;
  }

  .hero-image-wrap {
    min-height: 400px;
  }

  .info-grid,
  .two-columns,
  .pricing-grid,
  .testimonial-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .stats,
  .logo-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card:nth-child(2n) {
    border-right: 0;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .section-header {
    min-height: 116px;
  }

  .big-word {
    font-size: 70px;
  }

  .section-header h2 {
    font-size: 34px;
  }

  .hero-text h1 {
    font-size: 54px;
  }

  .hero-image-wrap {
    min-height: 320px;
  }

  .book-cover {
    height: 260px;
  }

  .pricing-card,
  .testimonial-card,
  .timeline-item {
    padding: 24px;
  }

  .stats,
  .logo-row {
    grid-template-columns: 1fr;
  }

  .stat-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .modal {
    padding: 14px;
  }

  .modal-text {
    padding: 34px 24px;
  }

  .footer {
    flex-direction: column;
    align-items: center;
  }
}

/* FIX: Home profile photo clipped into a circular photo area.
   This overrides the older .hero-image rule that displayed JPG photos as rectangles. */
.hero-image-wrap {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-image-wrap .circle-line {
  position: absolute;
  z-index: 0;
  width: min(44vw, 560px);
  aspect-ratio: 1 / 1;
  border: 4px solid var(--accent);
  border-left-color: transparent;
  border-top-color: transparent;
  border-radius: 50%;
  transform: rotate(-18deg) translateX(16px);
  pointer-events: none;
}

.hero-image-wrap .hero-photo-frame {
  position: relative;
  z-index: 1;
  width: min(34vw, 430px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: #111;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.hero-image-wrap .hero-photo-frame .hero-image {
  position: static !important;
  z-index: auto !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center top;
  border-radius: 0 !important;
  filter: none !important;
}

@media (max-width: 900px) {
  .hero-image-wrap {
    min-height: 430px;
  }

  .hero-image-wrap .hero-photo-frame {
    width: min(72vw, 360px);
  }

  .hero-image-wrap .circle-line {
    width: min(82vw, 430px);
  }
}

@media (max-width: 560px) {
  .hero-image-wrap {
    min-height: 330px;
  }
}

/* Sociálne siete - okrúhle tmavé tlačidlá s modrými ikonami */
.socials {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.socials a {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #252525;
  border: 1px solid #3a3a3a;
  color: var(--accent);
  text-decoration: none;
  font-size: 22px;
  transition: 0.25s ease;
}

.socials a i {
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}

.socials a:hover {
  border-color: var(--accent);
  background: #2d2d2d;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(46, 114, 232, 0.18);
}

.socials a:hover i {
  color: #ffffff;
}

/* O mne - text obteká pravý informačný blok */
.about-flow {
  display: flow-root;
}

.about-info-float {
  float: right;
  width: min(70%, 780px);
  margin: 0 0 34px 70px;
}

.about-flow h3 {
  color: var(--accent);
  font-size: 28px;
  line-height: 1.45;
  margin: 0 0 28px;
  max-width: 38%;
}

.about-main-text {
  color: var(--text);
  font-size: 21px;
  line-height: 1.75;
  margin: 0;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  overflow-wrap: break-word;
}

/* Mobilná verzia - bez obtekania */
@media (max-width: 900px) {
  .about-info-float {
    float: none;
    width: 100%;
    margin: 0 0 34px;
  }

  .about-flow h3 {
    max-width: 100%;
  }

  .about-main-text {
    text-align: left;
  }
}

/* Font hlavného mena na Home stránke */
.hero-text h1,
#home h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

/* Uskutočnené projekty - jemne odlíšené od pripravovaných */
.project-card.is-done img {
  filter: blur(10px) grayscale(35%) brightness(0.72) saturate(0.75);
  transform: scale(1.04);
}

.project-card.is-done::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  pointer-events: none;
  z-index: 1;
}

.project-card.is-done .project-overlay {
  z-index: 3;
}

.project-status-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 4;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(46, 114, 232, 0.92);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-card img {
  transition: filter 0.25s ease, transform 0.25s ease;
}

/* Červený štítok pre uskutočnené projekty */
.project-card .project-status-badge.done {
  background: rgba(190, 40, 40, 0.95);
  border: 1px solid rgba(255, 120, 120, 0.35);
  color: #ffffff;
}