@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&display=swap');

:root {
  --bg-light: #f2eee9;
  --bg-main: #dadccf;
  --bg-accent: #a89f8e;
  --accent: #c97e70;
  --accent-hover: #b86a5e;
  --text-dark: #000000;
}

/* === Общие стили === */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  background: linear-gradient(to bottom, var(--bg-light), var(--bg-main), var(--bg-accent));
  color: var(--text-dark);
  padding-top: 70px;
  line-height: 1.6;
}

/* === Навигация === */
.top-nav {
  position: fixed; top: 0; left: 0; width: 100%; height: 60px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1000;
}
.nav-container {
  width: 90%; max-width: 1200px;
  margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
    margin-top: 10px;
}
.logo-text {
  font-size: 25px; font-weight: 600; text-decoration: none;
  color: var(--text-dark);
}
.logo-text:hover { color: var(--accent); }

/* === Кнопки навигации (включая logout) === */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 1em;
}

.nav-buttons a,
.nav-buttons form input[type="submit"] {
    display: inline-block;
    text-decoration: none;
    border: 1.8px solid var(--accent);
    border-radius: 35px;
    padding: 0.6em 1.4em;
    font-weight: 500;
    font-size: 0.95em;
    color: var(--text-dark);
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(201, 126, 112, 0.15);
}

.nav-buttons a:hover,
.nav-buttons form input[type="submit"]:hover {
    background-color: var(--accent);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(201, 126, 112, 0.35);
}

.nav-buttons a.primary,
.nav-buttons form input[type="submit"].primary {
    background-color: var(--accent);
    color: #fff;
}

.nav-buttons a.primary:hover,
.nav-buttons form input[type="submit"].primary:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 5px 18px rgba(184, 106, 94, 0.4);
}

/* убираем отступы у формы */
.nav-buttons form {
    display: inline;
    margin: 0;
    padding: 0;
}

.menu-toggle {
  display: none; font-size: 1.8em; cursor: pointer;
}

/* === Логотип === */
.logo-top { text-align: center; margin-top: 6em; }
.logo-top img {
  width: 400px; border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.logo-top img:hover { transform: scale(1.05); }

/* === Контейнер === */
.container {
  width: 90%; max-width: 950px;
  margin: 2em auto; background: rgba(255,255,255,0.9);
  border-radius: 12px; box-shadow: 0 6px 25px rgba(0,0,0,0.1);
  padding: 2.5em 2em; text-align: center;
}
header.major h2 {
  margin-bottom: 1em; color: var(--text-dark);
}

/* === Сетка === */
.icons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5em; list-style: none;
}
.icons-grid h3 { color: var(--accent); }

/* === Отзывы === */
.testimonial-slider {
  position: relative; overflow: hidden;
}
.testimonial {
  display: none; flex-direction: column; align-items: center;
  animation: fade 0.6s ease;
}
.testimonial.active { display: flex; }
.testimonial p {
  max-width: 700px; font-style: italic; margin-bottom: 0.5em;
}
.testimonial span {
  color: var(--accent); font-weight: bold; margin-top: 0.3em;
}
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 1em;
    color: var(--accent);     /* остаётся постоянным */
    cursor: pointer;
    transition: none;         /* без плавных эффектов */
}

.prev:hover,
.next:hover,
.prev:active,
.next:active,
.prev:focus,
.next:focus {
    color: var(--accent);     /* не меняется */
    background: transparent;  /* не появляется фон */
    outline: none;            /* убираем рамку */
    transform: translateY(-50%); /* не двигается */
    box-shadow: none;
}

.prev { left: 10px; }
.next { right: 10px; }

.dots {
  margin-top: 1em;
  display: flex; justify-content: center; gap: 0.5em;
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #bbb; cursor: pointer; transition: 0.3s;
}
.dot.active { background: var(--accent); }

@keyframes fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Кнопка регистрации === */
input.primary {
  background: var(--accent); color: #fff;
  border: none; border-radius: 35px;
  padding: 1em 2.5em; font-size: 1.1em;
  cursor: pointer; transition: 0.3s;
}
input.primary:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}


@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-buttons {
        display: none;
        position: absolute;
        top: 60px;
        right: 15px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 12px;
        padding: 1em;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
        z-index: 999;
    }

    .nav-buttons.active {
        display: flex;
    }

    .nav-buttons a,
    .nav-buttons form input[type="submit"] {
        display: block;
        width: 100%;
        margin-bottom: 0.5em;
        text-align: center;
        font-size: 1em;
    }

    .container {
        width: 95%;
    }
}

/* === Универсальные кнопки === */
.btn,
input[type="submit"],
button,
.primary {
    display: inline-block;
    text-align: center;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.95em;
    color: var(--text-dark);
    background: transparent;
    border: 1.8px solid var(--accent);
    border-radius: 35px;
    padding: 0.7em 1.6em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(201, 126, 112, 0.2);
    text-decoration: none;
    white-space: nowrap;
}

.btn.primary,
input.primary,
button.primary,
input[type="submit"].primary {
    background-color: var(--accent);
    color: #fff;
}

.btn:hover,
input[type="submit"]:hover,
button:hover {
    background-color: var(--accent);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(201, 126, 112, 0.35);
}

.btn.primary:hover,
input.primary:hover,
button.primary:hover,
input[type="submit"].primary:hover {
    background-color: var(--accent-hover);
    transform: scale(1.05);
    box-shadow: 0 5px 18px rgba(184, 106, 94, 0.4);
}

.btn:active,
input[type="submit"]:active,
button:active {
    transform: scale(0.97);
    box-shadow: 0 2px 6px rgba(184, 106, 94, 0.3);
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .btn, .primary {
        padding: 0.6em 1.3em;
        font-size: 0.9em;
    }

    .letter-card {
        padding: 1em;
    }

    .letter-card h3 {
        font-size: 1.1em;
    }
}

.btn.small {
    font-size: 0.85em;
    padding: 0.4em 1em;
    border-radius: 25px;
}

.btn.small.danger {
    border-color: #d33;
    color: #d33;
}

.btn.small.danger:hover {
    background: #d33;
    color: #fff;
    box-shadow: 0 5px 15px rgba(200, 50, 50, 0.3);
}


