/* static/css/base.css */

/* Base typography */
html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: 'Lora', serif;
    font-weight: 600; /* Regular */
    font-size: clamp(16px, 1.2vw, 20px);
}

h1 {
    font-family: 'Lora', serif;
    font-weight: 700; /* Bold */
}

body {
    line-height: 1.7;
}

em {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-style: italic; /* Italic */
}

h2 {
    text-align: center;
}

/* Header */
.head {
    height: 120px;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    width: 100%;
    z-index: 1000;
}

.logo {
    height: 100%;
}

.responsive-logo {
    max-height: 100%;
    max-width: 100%;
    height: auto;
    width: auto;
}

.auth-links {
    margin-left: auto;
    margin-right: 3vw;
    display: flex;
    align-items: center; /* Выравнивание по центру по вертикали */
    gap: 12px;
	padding: 12px;
    justify-content: center;
}

.link,
.auth-links button.link {
    padding: 0.55rem 1.2rem;
    border-radius: 999px;

    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.2px;

    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;

    /* Нормализация button */
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    line-height: 1;
    cursor: pointer;
		text-align: center;

		color: deepskyblue;
		font-family: "Lora", serif;
		font-size: 1rem;
		-webkit-font-smoothing: antialiased;
		text-rendering: geometricPrecision;

}

.auth-links .link:hover,
.auth-links button.link:hover {
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
    transform: translateY(-1px);
}

.auth-links .link:active,
.auth-links button.link:active {
    transform: translateY(0);
}

.auth-links .link:focus-visible,
.auth-links button.link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 3px;
}

.footer-links a {
	color: #ADD8E6;
	text-decoration: none;
  display: inline-block;
  white-space: nowrap;   /* не разрывать текст ссылки */
  font-size: 12px;
  font-weight: 700;
  opacity: .92;
}

/* ===== Footer layout fix (override) ===== */

.extra-space{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 14px;
  flex-wrap: wrap;
}

.footer-links,
.social-media,
.footer-text{
  margin: 0;       /* убираем старые отступы */
  width: auto;     /* убираем width:100% */
}

/* links column */
.footer-links{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* socials */
.social-media{
  display: flex;
  justify-content: center;
}

.social-media a{
  margin: 0 8px; /* аккуратнее */
}

.footer-text{
  text-align: right;
  font-size: 13px;
  opacity: .85;
}

.footer-text p{
	color: #ADD8E6;
}

.text-block p{
	text-align: justify;
	text-indent: 40px;
}

.footer-links a:hover { text-decoration: underline; }

/* Fonts */
@font-face {
    font-family: 'Lora';
    src: url('/static/fonts/Lora/Lora-VariableFont_wght.ttf') format('truetype'),
         url('/static/fonts/Lora/Lora-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Lora';
    src: url('/static/fonts/Lora/Lora-Italic-VariableFont_wght.ttf') format('truetype'),
         url('/static/fonts/Lora/Lora-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Lora';
    src: url('/static/fonts/Lora/Lora-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Lora';
    src: url('/static/fonts/Lora/Lora-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'Lora';
    src: url('/static/fonts/Lora/Lora-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Lora';
    src: url('/static/fonts/Lora/Lora-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'Lora';
    src: url('/static/fonts/Lora/Lora-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Lora';
    src: url('/static/fonts/Lora/Lora-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
}

/* mobile: stack nicely */
@media (max-width: 768px){

  .extra-space{
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .footer-links{
    width: 100%;
    align-items: center;
  }

  .footer-links a{
    white-space: normal;
    text-align: center;
  }

  .social-media{
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .footer-text{
    width: 100%;
    text-align: center;
  }

}
