/* ---------------------------------------------
 * CSS для сайта ComptaFrance
 * Минималистичный дизайн с динамическими цветовыми переходами
 * ---------------------------------------------
 */

:root {
  /* Основная цветовая схема */
  --primary: #3273dc;
  --primary-dark: #2366d1;
  --primary-light: #4a89dc;
  --secondary: #23d160;
  --secondary-dark: #20bc56;
  --accent: #ff3860;
  --accent-light: #ff526f;

  /* Градиентная цветовая схема */
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary),
    var(--primary-light)
  );
  --gradient-secondary: linear-gradient(135deg, var(--secondary), #48c78e);
  --gradient-accent: linear-gradient(
    135deg,
    var(--accent),
    var(--accent-light)
  );
  --gradient-dark: linear-gradient(135deg, #2c3e50, #34495e);
  --gradient-light: linear-gradient(135deg, #f5f7fa, #e4e7eb);

  /* Нейтральные цвета */
  --white: #ffffff;
  --light: #f5f7fa;
  --dark: #363636;
  --grey: #7a7a7a;
  --grey-light: #b5b5b5;
  --grey-lighter: #dbdbdb;

  /* Шрифты */
  --font-heading: "Archivo Black", sans-serif;
  --font-body: "Roboto", sans-serif;

  /* Тени */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);

  /* Переходы */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Скругления */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-round: 50%;
}

/* ---------------------------------------------
 * Базовые стили
 * ---------------------------------------------
 */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  overflow-x: hidden;
  background-color: var(--white);
  line-height: 1.6;
}

section:nth-of-type(1) {
  padding-top: 100px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  transition: color var(--transition-normal);
}

a:hover {
  color: var(--primary);
}

.section {
  padding: 3rem 1.5rem;
}

.container {
  position: relative;
}

/* ---------------------------------------------
 * Утилитарные классы
 * ---------------------------------------------
 */

.has-shadow-sm {
  box-shadow: var(--shadow-sm);
}

.has-shadow-md {
  box-shadow: var(--shadow-md);
}

.has-shadow-lg {
  box-shadow: var(--shadow-lg);
}

.has-radius-sm {
  border-radius: var(--radius-sm);
}

.has-radius-md {
  border-radius: var(--radius-md);
}

.has-radius-lg {
  border-radius: var(--radius-lg);
}

.has-radius-round {
  border-radius: var(--radius-round);
}

.has-bg-gradient-primary {
  background: var(--gradient-primary);
}

.has-bg-gradient-secondary {
  background: var(--gradient-secondary);
}

.has-bg-gradient-accent {
  background: var(--gradient-accent);
}

.has-bg-gradient-dark {
  background: var(--gradient-dark);
}

.has-bg-gradient-light {
  background: var(--gradient-light);
}

/* ---------------------------------------------
 * Навигация
 * ---------------------------------------------
 */

.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color var(--transition-normal);
}

.navbar.is-fixed-top {
  padding: 0.5rem 0;
}

.navbar-item {
  transition: color var(--transition-normal);
}

.navbar-item:hover {
  color: var(--primary) !important;
  background-color: transparent !important;
}

.navbar-burger {
  height: auto;
}

.navbar-brand .navbar-item h1 {
  font-weight: 800;
}

.navbar-brand .navbar-item h1 span.has-text-primary {
  color: var(--primary) !important;
}

/* ---------------------------------------------
 * Герой секция
 * ---------------------------------------------
 */

.hero {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Параллакс эффект */
}

.hero-body {
  z-index: 1;
  padding: 6rem 1.5rem;
}

.hero .title,
.hero .subtitle {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .title.is-1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero .subtitle.is-3 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.hero p.is-size-5 {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ---------------------------------------------
 * Кнопки
 * ---------------------------------------------
 */

.button {
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #fff;
}

.button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.button.is-primary {
  background: var(--gradient-primary);
  border: none;
}

.button.is-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
}

.button.is-light.is-outlined {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.button.is-light.is-outlined:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ---------------------------------------------
 * Секции
 * ---------------------------------------------
 */

/* About Section */
#about {
  position: relative;
}

#about .title.is-2 {
  position: relative;
  display: inline-block;
}

#about .title.is-2:after {
  content: "";
  position: absolute;
  width: 50%;
  height: 4px;
  background: var(--gradient-primary);
  bottom: -10px;
  left: 25%;
  border-radius: var(--radius-sm);
}

/* FAQ Section */
#faq {
  background: var(--light);
}

#faq .card {
  height: 100%;
  transition: transform var(--transition-normal),
    box-shadow var(--transition-normal);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
}

#faq .card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

#faq .card-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#faq .card .title.is-4 {
  color: var(--primary);
  margin-bottom: 1rem;
}

/* History Section */
#history .card {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-normal),
    box-shadow var(--transition-normal);
  box-shadow: var(--shadow-sm);
  height: fit-content;
  display: flex;
  flex-direction: column;
}

#history .card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

#history .card-image {
  overflow: hidden;
}

#history .card-image figure {
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#history .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

#history .card:hover .card-image img {
  transform: scale(1.05);
}

#history .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

#history .card .title.is-4 {
  color: var(--primary);
}

/* Research Section */
#research {
  background: var(--light);
}

#research .card {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-normal),
    box-shadow var(--transition-normal);
  box-shadow: var(--shadow-sm);
  height: fit-content;
}

#research .card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

#research .card-image figure {
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#research .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

#research .card:hover .card-image img {
  transform: scale(1.05);
}

#research .card-content {
  padding: 1.5rem;
}

#research .card .title.is-4 {
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Success Stories Section */
#success-stories {
  background-color: var(--primary-light);
  background-image: linear-gradient(
    135deg,
    rgba(50, 115, 220, 0.05),
    rgba(74, 137, 220, 0.2)
  );
}

#success-stories .card {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-normal),
    box-shadow var(--transition-normal);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}

#success-stories .card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

#success-stories .card-image figure {
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#success-stories .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

#success-stories .card:hover .card-image img {
  transform: scale(1.05);
}

#success-stories .card-content {
  flex: 1;
  padding: 1.5rem;
}

#success-stories .card .title.is-4 {
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Sustainability Section */
.section .image {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.section .image img {
  transition: transform var(--transition-slow);
  width: 100%;
  height: auto;
}

.section:hover .image img {
  transform: scale(1.03);
}

/* Webinars Section */
.section .card {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-normal),
    box-shadow var(--transition-normal);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.section .card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.section .card-image figure {
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.section .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.section .card:hover .card-image img {
  transform: scale(1.05);
}

.section .card-content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.section .card .title.is-4 {
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Why Us Section */
#why-us {
  background: var(--light);
}

#why-us .box {
  border-radius: var(--radius-md);
  transition: transform var(--transition-normal),
    box-shadow var(--transition-normal);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}

#why-us .box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

#why-us .box .title.is-4 {
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Events Section */
.has-background-primary-light {
  background-color: rgba(50, 115, 220, 0.1);
}

/* Partners Section */
.section .card-image {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.section .card-image figure {
  display: flex;
  justify-content: center;
  align-items: center;
}

.section .card-image img {
  max-width: 100%;
  height: auto;
  transition: transform var(--transition-normal);
}

.section .card:hover .card-image img {
  transform: scale(1.05);
}

/* Projects Section */
#projects .card {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-normal),
    box-shadow var(--transition-normal);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}

#projects .card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

#projects .card-image figure {
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#projects .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

#projects .card:hover .card-image img {
  transform: scale(1.05);
}

/* News Section */
#news .card {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-normal),
    box-shadow var(--transition-normal);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
}

#news .card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

#news .card-image figure {
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#news .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

#news .card:hover .card-image img {
  transform: scale(1.05);
}

#news .card-content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

#news .card-content a.button {
  margin-top: auto;
  align-self: flex-start;
}

#news .card .title.is-4 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* Insights Section */
.has-background-primary-light {
  background-color: rgba(50, 115, 220, 0.1);
}

.content .title.is-3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

/* Contact Section */
#contact .label {
  color: var(--dark);
}

#contact .input,
#contact .textarea,
#contact .select select {
  border-radius: var(--radius-md);
  transition: border-color var(--transition-normal),
    box-shadow var(--transition-normal);
  box-shadow: none;
}

#contact .input:focus,
#contact .textarea:focus,
#contact .select select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.125em rgba(50, 115, 220, 0.25);
}

#contact iframe {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
}

#contact iframe:hover {
  transform: scale(1.01);
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--grey-light);
  padding: 3rem 1.5rem;
}

.footer a {
  color: var(--grey-light);
  transition: color var(--transition-normal);
}

.footer a:hover {
  color: var(--white);
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer .title {
  color: var(--white);
}

.footer .social-links p {
  margin-bottom: 0.5rem;
}

.footer .social-links a {
  display: inline-block;
  padding: 0.25rem 0;
  transition: color var(--transition-normal), transform var(--transition-normal);
}

.footer .social-links a:hover {
  color: var(--white);
  transform: translateX(5px);
}

/* ---------------------------------------------
 * Responsive стили
 * ---------------------------------------------
 */

@media screen and (max-width: 768px) {
  .hero .title.is-1 {
    font-size: 2.5rem;
  }

  .hero .subtitle.is-3 {
    font-size: 1.5rem;
  }

  .section {
    padding: 2rem 1rem;
  }

  .columns.is-mobile {
    display: flex;
    flex-direction: column;
  }

  .column {
    width: 100%;
  }
}

@media screen and (min-width: 769px) and (max-width: 1023px) {
  .hero .title.is-1 {
    font-size: 2.75rem;
  }

  .hero .subtitle.is-3 {
    font-size: 1.65rem;
  }
}

/* ---------------------------------------------
 * Стили для анимаций
 * ---------------------------------------------
 */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------
 * Стили для отдельных страниц
 * ---------------------------------------------
 */

/* Success Page */
.success-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
  text-align: center;
}

.success-page .icon {
  font-size: 5rem;
  color: var(--secondary);
  margin-bottom: 2rem;
}

/* Privacy & Terms Pages */
.privacy-page,
.terms-page {
  padding-top: 100px;
}

.privacy-page .content,
.terms-page .content {
  max-width: 800px;
  margin: 0 auto;
}

/* ---------------------------------------------
 * Стили для изображений
 * ---------------------------------------------
 */

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

figure {
  margin: 0;
}

figure.image {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ---------------------------------------------
 * Стили для карточек
 * ---------------------------------------------
 */

.card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-content {
  width: 100%;
}

.card img {
  margin: 0 auto;
}

/* ---------------------------------------------
 * Стили для кнопки "Читать далее"
 * ---------------------------------------------
 */

.button.is-small {
  padding: 0.25rem 1rem;
  font-size: 0.85rem;
}

a.button.is-small {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

a.button.is-small:after {
  content: "→";
  margin-left: 0.5rem;
  transition: transform var(--transition-normal);
}

a.button.is-small:hover:after {
  transform: translateX(4px);
}

/* ---------------------------------------------
 * Параллакс эффекты
 * ---------------------------------------------
 */

.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.parallax-content {
  position: relative;
  z-index: 2;
}

/* ---------------------------------------------
 * Стили для кнопки наверх
 * ---------------------------------------------
 */

.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  background-color: var(--primary);
  color: white;
  border-radius: var(--radius-round);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal),
    visibility var(--transition-normal), transform var(--transition-normal);
  z-index: 1000;
  cursor: pointer;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px);
}
