/* ─────────────────────────────────────────
   TymnyyUot — style.css
   Тема: Огонь & Лёд
───────────────────────────────────────── */

/* ── Reset & base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #070c18;
  --bg2:       #0b1221;
  --border:    rgba(255,255,255,.07);
  --fire:      #f97316;
  --fire2:     #ea580c;
  --ice:       #22d3ee;
  --ice2:      #0ea5e9;
  --text:      #dde6f5;
  --muted:     #4e6080;
  --muted2:    #8499b8;
  --grad:      linear-gradient(90deg, var(--fire), var(--ice));
  --grad-diag: linear-gradient(135deg, var(--fire), var(--ice));
  --glow-fire: rgba(249,115,22,.25);
  --glow-ice:  rgba(34,211,238,.2);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* ── Background decoration ── */
.bg-noise {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 20% -10%, rgba(249,115,22,.08) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 110%,  rgba(34,211,238,.07)  0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── Page wrapper ── */
.page {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 28px 120px;
}

/* ── Nav ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 80px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.nav-name {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: .82rem;
  color: var(--muted2);
  letter-spacing: .01em;
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--text);
}

/* ── Hero ── */
.hero {
  margin-bottom: 80px;
  animation: fadeUp .65s ease both;
}

.hero-eyebrow {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero h1 .accent {
  background: var(--grad-diag);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-divider {
  width: 48px;
  height: 3px;
  background: var(--grad);
  border-radius: 2px;
  margin-bottom: 22px;
}

.hero p {
  font-size: 1rem;
  color: var(--muted2);
  max-width: 480px;
  line-height: 1.78;
}

/* ── Section label ── */
.label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── About ── */
.about {
  margin-bottom: 80px;
  animation: fadeUp .7s .1s ease both;
}

.about-text {
  font-size: .97rem;
  color: var(--muted2);
  line-height: 1.85;
  margin-bottom: 16px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tag {
  font-size: .76rem;
  font-weight: 500;
  color: var(--muted2);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 4px 12px;
  transition: color .2s, border-color .2s;
}

.tag:hover {
  color: var(--text);
  border-color: rgba(255,255,255,.16);
}

/* ── Social links ── */
.socials {
  margin-bottom: 80px;
  animation: fadeUp .75s .18s ease both;
}

.social-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted2);
  transition: color .2s;
  font-size: .95rem;
}

.social-link:first-child {
  border-top: 1px solid var(--border);
}

.social-link:hover {
  color: var(--text);
}

.social-link:hover .social-icon {
  --c: var(--fire);
}

.social-icon {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s, border-color .2s;
}

.social-link:hover .social-icon {
  background: rgba(249,115,22,.08);
  border-color: rgba(249,115,22,.25);
}

.social-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  color: var(--muted2);
  transition: color .2s;
}

.social-link:hover .social-icon svg {
  color: var(--fire);
}

.social-name {
  font-weight: 500;
  letter-spacing: -.01em;
}

.social-handle {
  margin-left: auto;
  font-size: .82rem;
  color: var(--muted);
}

.social-arrow {
  font-size: .8rem;
  color: var(--muted);
  transition: transform .2s, color .2s;
}

.social-link:hover .social-arrow {
  transform: translate(3px, -3px);
  color: var(--fire);
}

/* ── Contact ── */
.contact {
  animation: fadeUp .8s .26s ease both;
}

.contact-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 6px;
}

.contact-text p {
  font-size: .88rem;
  color: var(--muted2);
  line-height: 1.65;
  max-width: 320px;
}

.btn-mail {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 20px;
  white-space: nowrap;
  transition: border-color .2s, background .2s, color .2s;
  position: relative;
  overflow: hidden;
}

.btn-mail::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-diag);
  opacity: 0;
  transition: opacity .25s;
  z-index: 0;
}

.btn-mail:hover::before {
  opacity: .1;
}

.btn-mail:hover {
  border-color: var(--fire);
  color: var(--text);
}

.btn-mail svg,
.btn-mail span {
  position: relative;
  z-index: 1;
}

.btn-mail svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ── Footer ── */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 28px 24px 36px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .02em;
}

/* ── Animation ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 520px) {
  nav { margin-bottom: 56px; }
  .nav-links { display: none; }
  .hero h1 { font-size: 2.4rem; }
  .contact-block { flex-direction: column; align-items: flex-start; }
  .social-handle { display: none; }
}
