/* wa-theme.css — тема, сгенерированная для восстановленного сайта (deepseek/deepseek-v4-pro, попытка 2). */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  background-color: #f9efdf;
  background-image: linear-gradient(135deg, #f7e3d7 0%, #fdf6f0 100%);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 0 1.5rem;
}

a {
  color: #d97a8c;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
a:hover,
a:focus {
  color: #4a2c2a;
  text-decoration: underline;
}

p {
  margin-bottom: 1rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, "Times New Roman", serif;
  color: #4a2c2a;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h6 {
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

/* ---------- MAIN PAGE CONTAINER ---------- */
.page {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  max-width: 1140px;
  margin: 2rem auto;
  padding: 2rem 2rem 1rem;
  background: #fff;
  border: 3px solid #e3a0b5;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  gap: 0;
}

/* ---------- LOGO / BRAND ---------- */
.page > .page_box {
  flex: 0 0 auto;
  align-self: center;
  margin-right: 2.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 1px;
  color: #4a2c2a;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  padding: 0.25rem 0;
  border-bottom: 2px solid #e3a0b5;
}

/* ---------- NAVIGATION ---------- */
.page > .navigation {
  flex: 0 0 auto;
  align-self: center;
  margin-right: 0.75rem;
}
.page > .navigation:last-of-type {
  margin-right: 0;
}

.navigation a {
  display: block;
  padding: 0.4rem 1rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: #4a2c2a;
  background: transparent;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.navigation a:hover,
.navigation a:focus {
  background: #f7e3e8;
  color: #d97a8c;
  text-decoration: none;
}

/* ---------- BANNER / SEPARATOR ---------- */
.page > .cc01,
.page > [class*="cc01"] {
  flex: 0 0 100%;
  margin: 1.5rem 0;
  padding: 0.75rem 2rem;
  background-color: #4a2c2a;
  color: #fdf6f0;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: normal;
  border-radius: 4px;
  align-self: center;
}

/* ---------- CONTENT BOXES ---------- */
.page > .cc02,
.page > .cc03,
.page > .cc04,
.page > .cc05,
.page > .cc06,
.page > .cc09,
.page > .cc10,
.page > .cc11,
.page > [class*="cc02"],
.page > [class*="cc03"],
.page > [class*="cc04"],
.page > [class*="cc05"],
.page > [class*="cc06"],
.page > [class*="cc09"],
.page > [class*="cc10"],
.page > [class*="cc11"] {
  flex: 0 0 100%;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: #fdfaf6;
  border: 1px solid #f2d9e0;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative; /* contain any absolute children from original CSS */
  overflow: hidden;
}

/* Ensure no absolute positioned elements escape these containers */
.page > .cc02 *,
.page > .cc03 *,
.page > .cc04 *,
.page > .cc05 *,
.page > .cc06 *,
.page > .cc09 *,
.page > .cc10 *,
.page > .cc11 *,
.page > [class*="cc02"] *,
.page > [class*="cc03"] *,
.page > [class*="cc04"] *,
.page > [class*="cc05"] *,
.page > [class*="cc06"] *,
.page > [class*="cc09"] *,
.page > [class*="cc10"] *,
.page > [class*="cc11"] * {
  position: static !important;
}

/* ---------- ALL OTHER ELEMENTS (FORCE BLOCK) ---------- */
.page > :not(.navigation):not(.page_box):not(.cc01):not(.cc02):not(.cc03):not(.cc04):not(.cc05):not(.cc06):not(.cc09):not(.cc10):not(.cc11):not([class*="cc0"]):not([class*="cc1"]) {
  flex: 0 0 100%;
  margin-bottom: 1rem;
}

/* ---------- FOOTER ---------- */
.footer {
  flex: 0 0 100%;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e3a0b5;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
  letter-spacing: 0.2px;
}

/* ---------- FORMS / BUTTONS ---------- */
input,
textarea,
select,
button {
  font-family: inherit;
  font-size: 1rem;
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="password"],
textarea {
  width: 100%;
  max-width: 400px;
  padding: 0.6rem 0.8rem;
  border: 1px solid #d4b3b9;
  border-radius: 6px;
  background: #fff;
  color: #333;
  margin-bottom: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus,
textarea:focus {
  outline: none;
  border-color: #d97a8c;
  box-shadow: 0 0 0 3px rgba(217, 122, 140, 0.15);
}

button,
input[type="submit"],
input[type="button"] {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 6px;
  background: #d97a8c;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  background: #c06a7a;
}
button:active,
input[type="submit"]:active,
input[type="button"]:active {
  transform: scale(0.98);
}

/* ---------- TABLES ---------- */
table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  background: #fff;
  border: 1px solid #f2d9e0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
th, td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f2d9e0;
  text-align: left;
}
th {
  background: #faf3f5;
  font-weight: 600;
  color: #4a2c2a;
}

/* ---------- IMAGE STACKING FIX ---------- */
img + img {
  margin-top: 1rem;
}
.cc02 img,
.cc03 img,
.cc04 img,
.cc05 img,
.cc06 img,
.cc09 img,
.cc10 img,
.cc11 img {
  margin-bottom: 1.5rem;
}

/* ---------- INNER PAGE ADDITIONAL CLASSES (cc06, cc10) ---------- */
.cc06,
.cc10 {
  flex: 0 0 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem;
  background: #fdfaf6;
  border: 1px solid #f2d9e0;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.cc06 p,
.cc10 p {
  margin-bottom: 1rem;
}
.cc06 a,
.cc10 a {
  color: #d97a8c;
  text-decoration: underline;
}

/* ---------- MOBILE RESPONSIVENESS ---------- */
@media (max-width: 768px) {
  .page {
    flex-direction: column;
    align-items: center;
    margin: 0.5rem;
    padding: 1rem;
    border-radius: 0;
    border-width: 2px;
  }

  .page > .page_box {
    margin-right: 0;
    margin-bottom: 0.75rem;
    font-size: 1.6rem;
    align-self: center;
    text-align: center;
    border-bottom: none;
    padding-bottom: 0.25rem;
  }

  .page > .navigation {
    flex: 0 0 100%;
    width: 100%;
    margin-right: 0;
    margin-bottom: 0.5rem;
    text-align: center;
  }
  .navigation a {
    display: block;
    padding: 0.6rem 0.5rem;
    font-size: 1.1rem;
    border-bottom: 1px solid #f2d9e0;
    border-radius: 0;
  }
  .navigation:last-child a {
    border-bottom: none;
  }

  .page > .cc02,
  .page > .cc03,
  .page > .cc04,
  .page > .cc05,
  .page > .cc06,
  .page > .cc09,
  .page > .cc10,
  .page > .cc11,
  .page > [class*="cc02"],
  .page > [class*="cc03"],
  .page > [class*="cc04"],
  .page > [class*="cc05"],
  .page > [class*="cc06"],
  .page > [class*="cc09"],
  .page > [class*="cc10"],
  .page > [class*="cc11"] {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 1rem;
  }

  .footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
  }

  p {
    margin-bottom: 0.75rem;
  }
}