/* Türk Çay Kültürü — Ana stiller */
:root {
  --color-bg: #faf8f5;
  --color-surface: #fff;
  --color-primary: #2d5016;
  --color-primary-light: #4a7c23;
  --color-accent: #b8860b;
  --color-text: #2c2c2c;
  --color-text-muted: #5a5a5a;
  --color-border: #e0dcd5;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Segoe UI', system-ui, sans-serif;
  --shadow: 0 2px 12px rgba(45, 80, 22, 0.06);
  --radius: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-light);
  text-decoration: none;
}

.site-title a:hover {
  text-decoration: none;
  color: var(--color-primary-light);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); margin-top: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.15rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }

p {
  margin: 0 0 1rem;
  max-width: 65ch;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease;
}

.site-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.35rem;
}

.site-title a {
  color: var(--color-primary);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: var(--color-border);
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-wrap {
  transition: max-height 0.35s ease, opacity 0.3s ease;
  overflow: hidden;
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-main a {
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-main a:hover,
.nav-main a.active {
  border-bottom-color: var(--color-primary);
  color: var(--color-primary);
}

/* Main content */
.main-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
  opacity: 0;
  transform: translateY(22px) translateX(-18px);
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0s;
}

.section:nth-child(even) {
  transform: translateY(22px) translateX(18px);
}

.section:nth-child(1) { transition-delay: 0.05s; }
.section:nth-child(2) { transition-delay: 0.12s; }
.section:nth-child(3) { transition-delay: 0.18s; }
.section:nth-child(4) { transition-delay: 0.24s; }
.section:nth-child(5) { transition-delay: 0.3s; }
.section:nth-child(6) { transition-delay: 0.36s; }
.section:nth-child(7) { transition-delay: 0.42s; }
.section:nth-child(8) { transition-delay: 0.48s; }

.section.animate-in {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

.section:last-of-type {
  border-bottom: none;
}

.section-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin: 1.5rem 0;
}

.section-row.reverse {
  direction: rtl;
}

.section-row.reverse > * {
  direction: ltr;
}

.section-row .section-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.section-row .section-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.section-row .section-body {
  direction: ltr;
}

.section-figure {
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.section-figure img {
  width: 100%;
  object-fit: cover;
}

@media (max-width: 700px) {
  .section-row,
  .section-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .section-row .section-body {
    direction: ltr;
  }
}

/* Lists */
ul, ol {
  padding-left: 1.5rem;
  margin: 0.75rem 0;
}

li {
  margin: 0.4rem 0;
}

.check-list {
  list-style: none;
  padding-left: 0;
}

.check-list li {
  padding-left: 1.75rem;
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

/* Footer */
.site-footer {
  background: var(--color-primary);
  color: #e8f0e4;
  margin-top: 3rem;
  padding: 2rem 1.25rem;
}

.site-footer a {
  color: #c8e0b8;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: none;
}

.site-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
}

.footer-meta {
  font-size: 0.9rem;
  opacity: 0.9;
  text-align: center;
  margin: 0 auto;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 1.5rem;
}

.contact-info {
  padding: 1.25rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.contact-info h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.contact-info p {
  margin: 0.6rem 0;
  max-width: none;
}

.contact-form-wrap {
  padding: 1.25rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.contact-form-wrap h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.form-note {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.contact-form-wrap .form-group input,
.contact-form-wrap .form-group textarea {
  max-width: 100%;
}

@media (max-width: 700px) {
  .contact-row {
    grid-template-columns: 1fr;
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-surface);
  border-top: 2px solid var(--color-primary);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  display: none;
}

.cookie-banner.is-visible {
  display: block;
  animation: slideUp 0.35s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-banner-inner {
  max-width: 960px;
  margin: 0 auto;
}

.cookie-banner p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-banner-buttons button {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  transition: background 0.2s ease;
}

.cookie-banner-buttons button.primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.cookie-banner-buttons button.primary:hover {
  background: var(--color-primary-light);
}

.cookie-banner-buttons button:hover {
  background: var(--color-border);
}

/* Cookie settings modal */
.cookie-settings {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(0,0,0,0.4);
  padding: 1.5rem;
  overflow-y: auto;
  align-items: flex-start;
  justify-content: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.cookie-settings.is-visible {
  display: flex;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cookie-settings-inner {
  background: var(--color-surface);
  max-width: 520px;
  width: 100%;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.cookie-settings h3 {
  margin-top: 0;
}

.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  gap: 1rem;
}

.cookie-category:last-of-type {
  border-bottom: none;
}

.cookie-category label {
  flex: 1;
  cursor: pointer;
}

.cookie-category input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  cursor: pointer;
}

.cookie-category.disabled input,
.cookie-category input:disabled {
  pointer-events: none;
  opacity: 0.7;
}

.cookie-settings-buttons {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-settings-buttons button {
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cookie-settings-buttons button:hover {
  background: var(--color-border);
}

.cookie-settings-buttons button:first-child {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.cookie-settings-buttons button:first-child:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary-light);
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  max-width: 400px;
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input[type="checkbox"] {
  max-width: none;
  width: auto;
  margin-right: 0.5rem;
}

.form-group.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.form-group.checkbox-group label {
  margin-bottom: 0;
  cursor: pointer;
}

.form-actions button {
  padding: 0.6rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease;
}

.form-actions button:hover {
  background: var(--color-primary-light);
}

.primary-btn {
  padding: 0.6rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease;
}

.primary-btn:hover {
  background: var(--color-primary-light);
}

.form-message {
  display: none;
}

/* Toast — уведомление сверху справа */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(360px, calc(100vw - 2rem));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  font-size: 0.95rem;
  animation: toastIn 0.35s ease;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.toast.success {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}

.toast.error {
  background: #ffebee;
  color: #b71c1c;
  border: 1px solid #ef9a9a;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 480px) {
  .toast-container {
    top: 0.75rem;
    right: 0.75rem;
    left: 0.75rem;
    max-width: none;
  }
}

/* Policy pages */
.policy-content {
  margin-bottom: 2rem;
}

.policy-content {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.policy-content.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.policy-content h2 { margin-top: 2.5rem; }
.policy-content h2:first-child { margin-top: 0; }

.policy-content p {
  max-width: none;
}

/* FAQ — smooth expand */
.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq-list li {
  margin: 0;
  border-bottom: 1px solid var(--color-border);
}

.faq-list summary {
  padding: 1rem 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-primary);
  transition: color 0.2s ease;
}

.faq-list summary:hover {
  color: var(--color-primary-light);
}

.faq-list details[open] summary {
  margin-bottom: 0;
}

.faq-list .faq-answer {
  padding: 0 0 1rem;
  color: var(--color-text-muted);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-list details[open] .faq-answer {
  max-height: 500px;
}

/* Responsive header */
@media (max-width: 768px) {
  .site-header-inner {
    position: relative;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-wrap {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    overflow-y: auto;
    background: var(--color-surface);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    transition: max-height 0.35s ease;
    z-index: 50;
  }

  .nav-wrap.is-open {
    max-height: min(85vh, 480px);
  }

  .nav-main {
    flex-direction: column;
    padding: 0.5rem 1.25rem 1rem;
    gap: 0;
  }

  .nav-main li {
    flex-shrink: 0;
  }

  .nav-main a {
    display: block;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--color-border);
  }
}

@media (min-width: 769px) {
  .nav-wrap {
    max-height: none;
  }
}

/* Responsive */
@media (max-width: 640px) {
  .main-content {
    padding: 1.5rem 1rem 3rem;
  }

  .cookie-banner-buttons {
    flex-direction: column;
  }

  .cookie-banner-buttons button {
    width: 100%;
  }
}
