body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: radial-gradient(circle at top, #1c1f2a, #0f1117);
  color: #fff;
}

/* ===== APP LAYOUT ===== */

.app {
  display: flex;
  min-height: 100vh;
}

/* ===== LEFT PANEL ===== */

.form {
  width: 38%;
  padding: 30px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form h2 {
  margin-bottom: 10px;
  font-size: 22px;
}

/* inputs */

.form input,
.form textarea {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  outline: none;
  transition: 0.2s;
}

.form input:focus,
.form textarea:focus {
  border-color: #6c7bff;
  box-shadow: 0 0 0 3px rgba(108, 123, 255, 0.15);
}

/* button */

.form button {
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #6c7bff, #9b6cff);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.form button:hover {
  transform: translateY(-2px);
}

/* ===== RIGHT PREVIEW ===== */

.preview {
  width: 62%;
  padding: 60px 60px 60px 60px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* CV CARD */

.preview {
  background: radial-gradient(circle at top, #ffffff, #f2f4f8);
  color: #111;
}

.cv {
  padding: 40px;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  width: 794px;
  min-height: 1123px;

  background: white;
  margin: 0 auto;
  overflow: hidden;
}
.cv p,
.cv h1,
.cv h2,
.cv h3,
.cv h4,
.cv h5,
.cv h6 {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}
/* photo */

.cv img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  margin-bottom: 20px;
}

/* text */

.cv h1 {
  margin: 0;
  font-size: 26px;
}

.cv h3 {
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #666;
}

.cv p {
  line-height: 1.5;
  color: #333;
}

/* ===== MOBILE ===== */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: #0f1117;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 11;
}

.logo {
  font-weight: 700;
  font-size: 18px;
}

.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
}

.header-btn {
  padding: 10px 16px;
  border: none;
  background: #6c7bff;
  color: white;
  border-radius: 10px;
  cursor: pointer;
}

/* HERO */

.hero {
  min-height: 92vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 180px;
  box-sizing: border-box;
  background: radial-gradient(circle at top, #1c1f2a, #0f1117);
  color: white;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 15px;
}

.hero p {
  color: #aaa;
  font-size: 16px;
  line-height: 1.5;
}

.hero-buttons {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.primary {
  padding: 12px 18px;
  background: linear-gradient(135deg, #6c7bff, #9b6cff);
  border: none;
  color: white;
  border-radius: 10px;
  cursor: pointer;
}

.secondary {
  padding: 12px 18px;
  background: transparent;
  border: 1px solid #444;
  color: white;
  border-radius: 10px;
  cursor: pointer;
}
.photo-frame {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
}

.photo-inner {
  width: 100%;
  height: 100%;
  position: relative;
}

#previewPhoto {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transform-origin: center;
}
.name {
  padding-top: 20px;
}
.footer {
  background: #0f1117;
  color: #aaa;
  padding: 40px 20px;

  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
}

.footer-left p {
  max-width: 250px;
  line-height: 1.5;
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
  transition: 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-right {
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* MOBILE */
@media (max-width: 700px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-left p {
    max-width: 100%;
  }
}
/* ======================
   MODERN TEMPLATE (NO SIZE CHANGE)
====================== */

.template-modern {
  background: #ffffff;

  padding: 40px; /* 🔴 важно: не раздуваем */
  margin: 20px; /* 🔴 важно */

  font-family: Inter, Arial, sans-serif;
  color: #1a1a1a;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px; /* только внутренний gap */
}

/* ===== HEADER ===== */

.template-modern .name {
  grid-column: 1 / -1;

  font-size: 32px;
  font-weight: 800;

  margin: 0 0 4px; /* минимально */
  padding: 0;
}

.template-modern .title {
  grid-column: 1 / -1;

  font-size: 13px;
  color: #666;

  margin: 0 0 8px;
}

/* ===== SECTION ===== */

.template-modern h3 {
  grid-column: 1 / -1;

  font-size: 11px;
  letter-spacing: 1.5px;

  margin: 6px 0 4px; /* 🔴 супер компактно */
  padding: 4px 8px;

  background: #111;
  color: #fff;

  border-radius: 5px;
}

/* ===== CONTENT ===== */

.template-modern p {
  background: #f3f5f9;
  border: 1px solid #d9deea;

  padding: 6px 8px; /* 🔴 ключевое сжатие */
  margin: 0;

  font-size: 12.5px;
  line-height: 1.25; /* 🔴 главный контроль высоты */

  border-radius: 6px;
}

/* ===== EXPERIENCE ===== */

.template-modern .item {
  background: #fff;
  border: 1px solid #e3e7f0;

  padding: 8px;
  margin-bottom: 4px;

  border-radius: 8px;
}

.template-modern .item-title {
  font-size: 13px;
  font-weight: 700;
}

.template-modern .item-subtitle {
  font-size: 11px;
  color: #666;
}

/* ===== SKILLS ===== */

.template-modern .skill {
  display: inline-block;

  padding: 3px 6px;
  margin: 2px;

  font-size: 10.5px;

  border-radius: 5px;

  background: #111;
  color: #fff;
}
.template-sidebar {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 35px;
}

.template-sidebar::before {
  content: "";
  position: absolute;
  left: 250px;
  top: 40px;
  bottom: 40px;
  width: 1px;
  background: #d9d9d9;
}
.template-sidebar .sidebar {
  padding-right: 25px;
}

.template-sidebar h3 {
  color: #6c7bff;
  border-bottom: 1px solid rgba(108, 123, 255, 0.3);
}
.template-sidebar .content-section {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid #ececec;
}
.template-corporate {
  border-radius: 0;
  box-shadow: none;
  border: 1px solid #ddd;
}
/* ======================
   CORPORATE TEMPLATE
====================== */

.template-corporate {
  background: #ffffff;
  color: #111;
  border-radius: 0;
  box-shadow: none;
  border: 1px solid #dcdcdc;
  padding: 50px;
}
.template-corporate .name {
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.template-corporate .name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 120px;
  height: 4px;

  background: #111;
}
.template-corporate .photo-frame {
  width: 90px;
  height: 90px;
  border: none;
  margin-bottom: 25px;
}

.template-corporate .name {
  font-size: 34px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-top: 0;
  margin-bottom: 20px;
}

.template-corporate h3 {
  margin-top: 28px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #dcdcdc;

  color: #111;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.template-corporate p {
  color: #222;
  line-height: 1.7;
  font-size: 14px;
}

.template-corporate #pContact {
  font-weight: 600;
}

.template-corporate .photo-frame {
  float: right;
}

.template-corporate::after {
  content: "";
  display: block;
  clear: both;
}
.template-label {
  display: block;
  margin-top: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #cfcfcf;
}

.template-select {
  width: 100%;
  padding: 14px 18px;

  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);

  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;

  color: white;
  font-size: 15px;
  cursor: pointer;

  transition: 0.3s;
}

.template-select:hover {
  border-color: rgba(108, 123, 255, 0.5);
}

.template-select:focus {
  outline: none;
  border-color: #6c7bff;
  box-shadow: 0 0 0 4px rgba(108, 123, 255, 0.15);
}

.template-select option {
  background: #1a1d27;
  color: white;
}
/* Общие секции */

.cv h3 {
  position: relative;
  margin-top: 28px;
  margin-bottom: 12px;
  padding-bottom: 10px;

  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Corporate */

.template-corporate h3 {
  color: #111;
  border-bottom: 2px solid #111;
}

.template-corporate h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;

  width: 60px;
  height: 2px;

  background: #444;
}

/* Отделяем блоки */

.template-corporate p {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid #ececec;
}

/* ======================
   CREATIVE TEMPLATE
====================== */

.template-creative {
  background: #ffffff;
  padding: 40px;
  border-radius: 20px;
}

.template-creative .name {
  text-align: center;
  font-size: 38px;
  margin-bottom: 30px;
}

.template-creative .photo-frame {
  margin: 0 auto 25px;
  width: 130px;
  height: 130px;
}

.template-creative h3 {
  margin: 0 0 10px;
  color: #6c7bff;
  border: none;
  font-size: 14px;
}

.template-creative p {
  margin: 0;
}

.template-creative {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.template-creative .name,
.template-creative .photo-frame {
  grid-column: 1 / -1;
}
/* ======================
   ELEGANT TEMPLATE
====================== */

/* ======================
   ELEGANT TABLE STYLE (DRAFT 1)
====================== */

.template-elegant {
  background: #ffffff;
  padding: 40px;
  border-radius: 0;

  font-family: Inter, Arial, sans-serif;
  color: #111;

  /* пока без сложного grid */
}

/* Имя */
.template-elegant .name {
  font-size: 36px;
  font-weight: 600;
  margin: 0 0 20px;
  text-align: left;
  border-bottom: 2px solid #000;
  padding-bottom: 10px;
}

/* Заголовки секций (как строки таблицы) */
.template-elegant h3 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;

  margin: 0;
  padding: 10px 12px;

  background: #f3f3f3;
  border: 1px solid #ddd;
  border-bottom: none;
}

/* Контент (как ячейка таблицы) */
.template-elegant p {
  margin: 0;
  padding: 12px;

  font-size: 14px;
  line-height: 1.5;

  border: 1px solid #ddd;
  background: #fff;
}

/* разделение блоков */
.template-elegant h3 + p {
  margin-bottom: 14px;
}

/* лёгкие линии как в Excel */
.template-elegant h3,
.template-elegant p {
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
}

.template-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 20px 0;
}

.template-item {
  cursor: pointer;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.3s;
}

.template-item:hover {
  transform: translateY(-4px);
  border-color: #6c7bff;
}

.template-thumb {
  height: 120px;
  border-radius: 10px;
  margin-bottom: 10px;
}
.template-item.active {
  border: 2px solid #6c7bff;
  box-shadow: 0 0 20px rgba(108, 123, 255, 0.3);
}
.template-thumb {
  background: white;
  padding: 10px;
  border-radius: 12px;
  height: 130px;
}

.mini-header {
  width: 60%;
  height: 10px;
  background: #6c7bff;
  border-radius: 20px;
  margin-bottom: 12px;
}

.mini-line {
  width: 100%;
  height: 6px;
  background: #d9dce5;
  border-radius: 20px;
  margin-bottom: 8px;
}

.mini-line.short {
  width: 70%;
}
.sidebar-thumb {
  display: flex;
  overflow: hidden;
}

.sidebar-left {
  width: 30%;
  background: #6c7bff;
}

.sidebar-right {
  flex: 1;
  padding: 10px;
}
.sidebar-thumb {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 6px;
}

.sidebar-thumb::before {
  content: "";
  grid-column: 1 / 2;
  background: #6c7bff;
  border-radius: 6px;
  height: 100%;
}

.sidebar-thumb::after {
  content: "";
  grid-column: 2 / 3;

  background: linear-gradient(#d9dce5 60%, transparent 0);
  background-size: 100% 8px;

  border-radius: 6px;
}
.corporate-thumb {
  background: #fff;
}

.corporate-thumb .mini-header {
  width: 80%;
  height: 8px;
  background: #4090db;
  border-radius: 2px;
}

.corporate-thumb .mini-line {
  width: 100%;
  height: 5px;
  background: #e0e0e0;
  border-radius: 2px;
  margin-top: 4px;
}
.creative-thumb {
  background: linear-gradient(135deg, #f7f7ff, #ffffff);
}

.creative-thumb .mini-header {
  width: 50%;
  height: 10px;
  background: linear-gradient(90deg, #6c7bff, #9b6cff);
  border-radius: 20px;
}

.creative-thumb .mini-line {
  width: 100%;
  height: 6px;
  background: #e9e9ff;
  border-radius: 20px;
}
.elegant-thumb {
  background: #ffffff;
  border: 1px solid #e5e5e5;
}

.elegant-thumb .mini-header {
  width: 70%;
  height: 8px;
  background: #667adf;
}

.elegant-thumb .mini-line {
  width: 100%;
  height: 6px;
  background: #f2f2f2;
  border: 1px solid #ddd;
}
.corporate-thumb {
  background: white;
  overflow: hidden;
}

.corp-top {
  height: 18px;
  background: #4282da;
}

.corp-content {
  padding: 10px;
}
.creative-thumb {
  background: white;
  overflow: hidden;
}

.creative-banner {
  height: 25px;
  background: linear-gradient(90deg, #6c7bff, #9b6cff, #ff6b8b);
}

.creative-content {
  padding: 10px;
}
.elegant-thumb {
  background: #faf8f4;
  overflow: hidden;
}

.elegant-line {
  height: 4px;
  background: #6198fd;
}

.elegant-content {
  padding: 10px;
}

.elegant-header {
  background: #5292d6;
}
@media (max-width: 430px) {
  .header-btn {
    display: none;
  }
}
/* =========================
   HERO ADAPTIVE
========================= */

@media (max-width: 992px) {
  .hero {
    padding-top: 140px;
    height: auto;
    min-height: 92vh;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 140px;
  }

  .hero-content {
    max-width: 600px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 75vh;
    padding-top: 120px;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.2;
  }

  .hero p {
    font-size: 15px;
    line-height: 1.6;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .primary,
  .secondary {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 100px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero p {
    font-size: 14px;
  }

  .hero-buttons {
    margin-top: 20px;
  }

  .primary,
  .secondary {
    width: 100%;
  }
}
@media (max-width: 900px) {
  .app {
    flex-direction: column;
  }

  .form {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
  }

  .preview {
    width: 100%;
    overflow-x: auto;

    display: flex;
    justify-content: center;

    padding: 20px 0;
    box-sizing: border-box;
  }

  .cv {
    width: 794px;
    min-height: 1123px;

    transform: scale(0.55);
    transform-origin: top center;
    flex-shrink: 0;
  }

  .template-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
@media (max-width: 1448px) {
  .cv {
    transform: scale(0.85);
    transform-origin: top center;
  }
  .cv {
    width: 794px; /* фикс A4 */
    max-width: 794px;
    min-width: 794px;
    flex-shrink: 0;
  }
  .app {
    display: flex;
  }

  .form {
    flex: 0 0 420px;
  }

  .preview {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
    overflow: hidden;
  }

  .cv {
    width: 794px;
    flex-shrink: 0;
  }
}

@media (max-width: 1337px) {
  .cv {
    transform: scale(0.75);
  }
  .preview {
    padding: 40px 20px;
  }
}

@media (max-width: 1262x) {
  .cv {
    transform: scale(0.65);
  }
}
/* ===== BASE ===== */
.cv {
  transform-origin: top center;
  transition: transform 0.2s ease;
}

/* ===== 1100px ===== */
@media (max-width: 1100px) {
  .cv {
    transform: scale(0.55);
  }
}

/* ===== 1000px ===== */
@media (max-width: 1000px) {
  .cv {
    transform: scale(0.45);
  }
}

/* ===== 900px ===== */
@media (max-width: 900px) {
  .cv {
    transform: scale(0.65);
  }
  .preview {
    padding: 60px 20px;
  }
}

/* ===== 800px ===== */
@media (max-width: 800px) {
  .cv {
    transform: scale(0.65);
  }
}
@media (max-width: 670px) {
  .cv {
    transform: scale(0.55);
  }
  .preview {
    max-height: 900px;
  }
}
@media (max-width: 560px) {
  .cv {
    transform: scale(0.5);
  }
}
@media (max-width: 500px) {
  .cv {
    transform: scale(0.45);
  }
  .preview {
    max-height: 800px;
  }
}
@media (max-width: 450px) {
  .cv {
    transform: scale(0.4);
  }
}
@media (max-width: 410px) {
  .cv {
    transform: scale(0.35);
  }
  .preview {
    max-height: 700px;
  }
}
.seo-block {
  padding: 80px 20px;
  background: #ffffff;
  color: #111;
}

.seo-container {
  max-width: 1100px;
  margin: 0 auto;
}

.seo-block h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 20px;
}

.seo-block > .seo-container > p {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: #666;
  line-height: 1.7;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.step {
  padding: 25px;
  border-radius: 18px;
  background: #f6f8fc;
  border: 1px solid #e6eaf5;
}

.step span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #6c7bff;
  color: white;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 15px;
}

.step h3 {
  margin-bottom: 10px;
}

.step p {
  color: #666;
  line-height: 1.6;
}

@media (max-width: 800px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
/* ======================
   PROJECT ROADMAP
====================== */

.roadmap {
  padding: 180px 20px 250px 20px;
  background: #0f1117;
  color: #fff;
}

.roadmap-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.roadmap h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.roadmap p {
  color: #aaa;
  line-height: 1.7;
  margin-bottom: 30px;
}

.roadmap ul {
  list-style: none;
  padding: 0;
  margin: 0;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.roadmap li {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 14px;
  padding: 18px;

  text-align: left;

  transition: 0.3s;
}

.roadmap li:hover {
  transform: translateY(-3px);
  border-color: rgba(108, 123, 255, 0.5);
}

.roadmap li::before {
  content: "✓";
  color: #6c7bff;
  font-weight: 700;
  margin-right: 10px;
}

/* MOBILE */

@media (max-width: 700px) {
  .roadmap ul {
    grid-template-columns: 1fr;
  }

  .roadmap h2 {
    font-size: 26px;
  }
}
.about-project {
  min-height: 100vh;
  padding: 80px 20px;
  background: radial-gradient(circle at top, #1c1f2a, #0f1117);
  color: white;
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
}

.about-project h1 {
  font-size: 48px;
  margin-bottom: 25px;
  text-align: center;
}

.about-lead {
  text-align: center;
  color: #aaa;
  line-height: 1.8;
  font-size: 18px;
  margin-bottom: 50px;
}

.about-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.about-card h2 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #fff;
}

.about-card p {
  color: #c7c7c7;
  line-height: 1.7;
}

.about-card ul {
  margin: 15px 0 0;
  padding-left: 20px;
}

.about-card li {
  margin-bottom: 10px;
  color: #c7c7c7;
}

@media (max-width: 768px) {
  .about-project h1 {
    font-size: 36px;
  }

  .about-lead {
    font-size: 16px;
  }

  .about-card {
    padding: 22px;
  }
}
.policy {
  min-height: 100vh;
  padding: 80px 20px;
  background: radial-gradient(circle at top, #1c1f2a, #0f1117);
  color: white;
}

.policy-container {
  max-width: 900px;
  margin: 0 auto;
}

.policy h1 {
  text-align: center;
  font-size: 46px;
  margin-bottom: 10px;
}

.policy-date {
  text-align: center;
  color: #888;
  margin-bottom: 40px;
}

.policy-block {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 25px;
  margin-bottom: 20px;
}

.policy-block h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 22px;
}

.policy-block p {
  color: #c7c7c7;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .policy h1 {
    font-size: 34px;
  }
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  opacity: 0.8;
  transition: 0.2s;
}

.footer-links a:hover {
  opacity: 1;
  color: #6c7bff;
}
/* ===== MODAL ===== */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);

  display: none;
  justify-content: center;
  align-items: center;

  z-index: 9999;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: #11131a;
  color: white;

  padding: 30px;
  border-radius: 16px;

  width: 320px;
  text-align: center;

  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;

  font-size: 22px;
  cursor: pointer;
  color: #aaa;
}

.modal-close:hover {
  color: white;
}

.email {
  display: inline-block;
  margin-top: 15px;

  color: #6c7bff;
  text-decoration: none;
  font-weight: 600;
}

.email:hover {
  text-decoration: underline;
}
.page {
  max-width: 1400px;
  margin: 0 auto;
}
/* ===== BACK BUTTON ===== */

.page-header {
  padding: 20px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  color: #fff;
  text-decoration: none;

  font-size: 14px;
  padding: 10px 14px;

  border-radius: 10px;

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);

  backdrop-filter: blur(10px);

  transition: 0.25s;
}

.back-btn:hover {
  transform: translateX(-4px);
  border-color: rgba(108, 123, 255, 0.5);
  color: #fff;
}
/* ======================
   BACK BUTTON (GLOBAL)
====================== */

.page-header {
  padding: 20px 20px 0;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 10px 14px;

  font-size: 14px;
  color: #fff;
  text-decoration: none;

  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;

  backdrop-filter: blur(10px);

  transition: 0.25s ease;
}

.back-btn:hover {
  transform: translateX(-4px);
  border-color: rgba(108, 123, 255, 0.6);
  box-shadow: 0 8px 25px rgba(108, 123, 255, 0.15);
}
/* ===== POLICY HEADER RESPONSIVE ===== */

.policy h1 {
  text-align: center;
  font-size: 46px;
  margin-bottom: 10px;
  line-height: 1.2;
}

.policy-date {
  text-align: center;
  color: #888;
  margin-bottom: 40px;
  font-size: 14px;
}

/* TABLET */
@media (max-width: 768px) {
  .policy h1 {
    font-size: 34px;
  }

  .policy-date {
    font-size: 13px;
    margin-bottom: 30px;
  }
}

/* MOBILE */
@media (max-width: 480px) {
  .policy h1 {
    font-size: 26px;
  }

  .policy-date {
    font-size: 12px;
    margin-bottom: 25px;
  }
}
.lang-switcher {
  display: flex;
  gap: 8px;
}

.lang-switcher a {
  text-decoration: none;
  color: #aaa;

  padding: 8px 12px;

  border-radius: 8px;

  transition: 0.3s;

  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-switcher a:hover {
  color: white;
  border-color: #6c7bff;
}

.lang-switcher .active {
  background: #6c7bff;
  color: white;
}
