:root {
  --ink: #1c2a39;
  --ink-soft: #516070;
  --header-start: #0f172a;
  --header-mid: #1e3a5f;
  --header-end: #284b63;
  --accent: #2a9d8f;
  --accent-deep: #1f7a8c;
  --accent-warm: #f4a261;
  --card-border: #dbe4ee;
  --card-bg: #ffffff;
  --page-glow: rgba(244, 162, 97, 0.3);
  --page-glow-cool: rgba(42, 157, 143, 0.22);
}

* {
  box-sizing: border-box;
}

body.page-body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 6%, var(--page-glow), transparent 42%),
    radial-gradient(circle at 92% 12%, var(--page-glow-cool), transparent 44%),
    linear-gradient(150deg, #f9efe2, #eaf1f6 48%, #e6edf4 100%);
}

.corner-links {
  position: fixed;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.corner-link {
  display: inline-block;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  border-radius: 10px;
  border: 1px solid rgba(36, 60, 84, 0.2);
  padding: 0.5rem 0.68rem;
  color: #16324d;
  background: rgba(250, 252, 255, 0.9);
  box-shadow: 0 8px 16px rgba(30, 49, 73, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.corner-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(21, 39, 61, 0.2);
  text-decoration: none;
}

.corner-link-old {
  background: rgba(255, 244, 229, 0.95);
}

.corner-link-main {
  background: rgba(234, 245, 255, 0.95);
}

.page-shell {
  width: min(1100px, calc(100% - 2rem));
  margin: 1rem auto 1.25rem;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(132, 156, 181, 0.3);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 44px rgba(23, 36, 54, 0.18);
}

.site-header {
  position: relative;
  padding: 2rem 2rem 1.35rem;
  color: #ffffff;
  background: linear-gradient(132deg, var(--header-start), var(--header-mid) 56%, var(--header-end));
}

.site-header::after {
  content: "";
  position: absolute;
  right: -64px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.site-title {
  margin: 0;
  letter-spacing: 0.5px;
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  font-family: "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
}

.site-subtitle {
  margin: 0.5rem 0 0;
  max-width: 55ch;
  color: #d7e5f4;
}

.menu-wrap {
  position: relative;
  z-index: 2;
  background: rgba(247, 251, 255, 0.8);
  border-bottom: 1px solid #d8e1ec;
  padding: 0.7rem 1rem;
}

.menu-frame {
  display: block;
  position: relative;
  z-index: 2;
  width: 100%;
  height: 60px;
  border: 0;
}

.content-area {
  min-height: 430px;
  padding: 1.8rem 2rem 2.2rem;
  animation: rise 0.55s ease both;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.45rem;
  box-shadow: 0 12px 24px rgba(22, 43, 67, 0.08);
}

.center-card {
  text-align: center;
}

.text-card p {
  line-height: 1.75;
  color: #2e465e;
}

.section-title {
  margin: 0 0 0.8rem;
  font-size: 1.5rem;
  color: #173753;
  font-family: "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
}

.lead {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.75;
  color: #27425f;
}

.subtle-text {
  color: var(--ink-soft);
}

.cta-row {
  margin-top: 1.2rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cta-row-start {
  justify-content: flex-start;
}

.button-link {
  display: inline-block;
  border: 0;
  text-decoration: none;
  padding: 0.68rem 1.08rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #ffffff;
  background: linear-gradient(120deg, #1e3a5f, #2d5b88);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.button-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(18, 34, 55, 0.24);
  text-decoration: none;
}

.button-link.alt {
  background: linear-gradient(120deg, var(--accent), var(--accent-deep));
}

a {
  color: #1d5f96;
  font-weight: 650;
}

a:hover {
  color: #114a77;
}

.place-grid,
.skill-grid,
.gallery-grid {
  display: grid;
  gap: 1rem;
}

.place-grid {
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
}

.place-item {
  background: #ffffff;
  border: 1px solid #dde6f0;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 10px 20px rgba(23, 43, 66, 0.07);
}

.place-item :is(h1, h2, h3, h4, h5, h6) {
  margin: 0 0 0.55rem;
  font-family: "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
}

.place-item h1 {
  font-size: 1.24rem;
}

.place-item h2 {
  font-size: 1.16rem;
}

.place-item h3 {
  font-size: 1.08rem;
}

.place-item h4 {
  font-size: 1.02rem;
}

.place-item h5 {
  font-size: 0.96rem;
}

.place-item h6 {
  font-size: 0.9rem;
}

.place-item p {
  margin: 0;
  color: #4a6075;
  line-height: 1.6;
}

.skill-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.skill-card {
  background: #ffffff;
  border: 1px solid #dde7ef;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 10px 20px rgba(27, 45, 69, 0.07);
}

.skill-card h2 {
  margin: 0;
  font-size: 1.08rem;
  color: #173753;
  font-family: "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
}

.skill-card h3 {
  margin: 0.85rem 0 0.2rem;
  font-size: 0.96rem;
  color: #36506a;
}

.skill-card ul {
  margin: 0.3rem 0 0;
  padding-left: 1.1rem;
  color: #324e69;
  line-height: 1.55;
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.gallery-card img {
  display: block;
  width: 100%;
  border-radius: 11px;
  border: 1px solid #d4dfe9;
  box-shadow: 0 10px 20px rgba(23, 39, 59, 0.13);
  transition: transform 0.25s ease;
}

.gallery-card a:hover img {
  transform: scale(1.02);
}

.gallery-card p {
  margin: 0 0 0.75rem;
  color: #4a6077;
}

.contact-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.contact-methods {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.75rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #d6e1ed;
  border-radius: 12px;
  background: #ffffff;
  color: #1a3b57;
  text-decoration: none;
  box-shadow: 0 9px 18px rgba(21, 42, 64, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.contact-method:hover {
  transform: translateY(-1px);
  border-color: #b9ccdf;
  box-shadow: 0 12px 22px rgba(20, 39, 60, 0.12);
  text-decoration: none;
}

.contact-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #1c4668;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.55px;
  color: #6a7f94;
  text-transform: uppercase;
}

.contact-value {
  font-size: 0.98rem;
  color: #1b3f5d;
  overflow-wrap: anywhere;
}

.contact-email .contact-icon {
  background: #eef5fd;
}

.contact-telegram .contact-icon {
  background: #eaf8ff;
}

.contact-whatsapp .contact-icon {
  background: #e8fbef;
}

.site-footer {
  padding: 0.95rem 1rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #584918;
  background: linear-gradient(90deg, #f2e5c0, #f9ebaf);
}

body.menu-body {
  margin: 0;
  background: transparent;
  font-family: "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
}

.menu-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.15rem;
}

.menu-link {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid #d5deeb;
  background: #eff3f9;
  color: #1f3b56;
  padding: 0.45rem 0.82rem;
  transition: all 0.2s ease;
}

.menu-link:hover {
  background: #2b557d;
  border-color: #2b557d;
  color: #ffffff;
  text-decoration: none;
}

.menu-link.active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(120deg, var(--accent), var(--accent-deep));
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(9px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .menu-frame {
    height: 108px;
  }

  .corner-link {
    font-size: 0.78rem;
    padding: 0.42rem 0.58rem;
  }

  .content-area {
    min-height: 360px;
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: calc(100% - 1rem);
    margin: 0.55rem auto 0.85rem;
    border-radius: 16px;
  }

  .site-header {
    padding: 1.4rem 1rem 1.15rem;
  }

  .menu-wrap {
    padding: 0.65rem 0.65rem;
  }

  .menu-frame {
    height: 155px;
  }

  .corner-links {
    top: 0.55rem;
    left: 0.55rem;
    gap: 0.38rem;
  }

  .content-area {
    padding: 1rem;
  }

  .section-title {
    font-size: 1.33rem;
  }

  .lead {
    font-size: 1rem;
  }

  .contact-method {
    padding: 0.65rem 0.72rem;
    gap: 0.62rem;
  }

  .contact-icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }

  .contact-icon svg {
    width: 20px;
    height: 20px;
  }

  .contact-label {
    font-size: 0.72rem;
  }

  .contact-value {
    font-size: 0.92rem;
  }
}
